fix(code-ql): update code-ql action (#42010)
This commit is contained in:
committed by
GitHub
parent
ccdea0c727
commit
411ce3002c
33
.github/workflows/codeql-analysis.yml
vendored
33
.github/workflows/codeql-analysis.yml
vendored
@ -1,29 +1,26 @@
|
|||||||
name: CodeQL
|
name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches: [main]
|
||||||
- 'renovate/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
branches: [main]
|
||||||
- cron: '0 20 * * 5'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CodeQL:
|
analyse:
|
||||||
name: CodeQL Scan
|
name: Analyse
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
# Do not run the Workflow on dependabot
|
if: github.actor != 'renovate[bot]'
|
||||||
if: github.actor != 'dependabot[bot]'
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: ["javascript"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Files
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
- name: Setup CodeQL
|
||||||
fetch-depth: 2
|
|
||||||
- run: git checkout HEAD^2
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: ${{ matrix.language }}
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v1
|
||||||
|
Reference in New Issue
Block a user