Initialize GitHub code scanning workflow using security-and-quality suite.

This commit is contained in:
David Anson 2020-10-01 21:18:35 -07:00
parent 82cf68023f
commit f1f6868a2c
2 changed files with 43 additions and 0 deletions

7
.github/codeql-config.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
name: "CodeQL Config"
queries:
- uses: security-and-quality
paths-ignore:
- demo/markdownlint-browser.js

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

@ -0,0 +1,36 @@
name: "CodeQL"
on:
pull_request:
push:
schedule:
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript']
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:
config-file: ./.github/codeql-config.yaml
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1