From b303142537d37800b53c50c61b5fa66ff3cb1670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiana=20=F0=9F=9A=80=20=20Campanari?= Date: Fri, 18 Oct 2024 13:45:10 -0300 Subject: [PATCH] Create codeql-analysis.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiana 🚀 Campanari --- .github/workflows/codeql-analysis.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..320ebce --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,43 @@ + +name: 'Code scanning' + +on: + push: + branches: [main] + pull_request: + branches: [main] + types: + - opened + - synchronize + - reopened + - ready_for_review + schedule: + - cron: '0 13 * * 1' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + if: github.event.pull_request.draft != true + permissions: + security-events: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Delete fixtures to suppress false positives + run: | + find ./lib -type d -name '__fixtures__' -exec rm -rf {} \; || true + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: javascript + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3