From ff40b52a3f2652f8f97a297a57270ffacb2bd387 Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Thu, 12 Sep 2024 17:58:06 -0400 Subject: [PATCH] chore: restore linters.yml workflow Signed-off-by: Jennifer Power --- .github/workflows/linters.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/linters.yml diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..d2bfd52 --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,31 @@ +--- + +name: MegaLinter + +on: + push: + pull_request: + branches: + - main + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + lint: + name: MegaLinter + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: MegaLinter + id: ml + uses: oxsecurity/megalinter@v7 + env: + VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file