ci(CodeScanning): add CodeQL code scanning workflow

This commit is contained in:
Noel 2020-08-24 19:27:00 +02:00 committed by GitHub
parent 05c9e30163
commit 43c4d80b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
.github/workflows/codeql-analysis.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: "CodeQL"
on:
push:
pull_request:
schedule:
- cron: '0 */12 * * 4'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- 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
uses: github/codeql-action/init@v1
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1