From 411ce3002c208ef46ee0a1740680c1f1f1031dbf Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Thu, 6 May 2021 10:03:34 +0530 Subject: [PATCH] fix(code-ql): update code-ql action (#42010) --- .github/workflows/codeql-analysis.yml | 33 ++++++++++++--------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c6e287fdd3..40324083cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,29 +1,26 @@ -name: CodeQL +name: "CodeQL" on: push: - branches-ignore: - - 'renovate/**' + branches: [main] pull_request: - schedule: - - cron: '0 20 * * 5' + branches: [main] jobs: - CodeQL: - name: CodeQL Scan - runs-on: ubuntu-18.04 - # Do not run the Workflow on dependabot - if: github.actor != 'dependabot[bot]' + analyse: + name: Analyse + runs-on: ubuntu-latest + if: github.actor != 'renovate[bot]' + strategy: + fail-fast: false + matrix: + language: ["javascript"] steps: - - name: Checkout Source Files + - name: Checkout repository uses: actions/checkout@v2 - with: - fetch-depth: 2 - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - name: Initialize CodeQL + - name: Setup CodeQL uses: github/codeql-action/init@v1 with: - languages: javascript - - name: Perform CodeQL Analysis + languages: ${{ matrix.language }} + - name: Perform Analysis uses: github/codeql-action/analyze@v1