Create codeql-analysis.yml (#71)

* Create codeql-analysis.yml

* Update .github/PULL_REQUEST_TEMPLATE.md
This commit is contained in:
Dave Gallant
2020-07-01 18:54:52 -04:00
committed by GitHub
parent dbcdc01457
commit a5d1bb197d
2 changed files with 28 additions and 9 deletions

View File

@@ -1,9 +1 @@
**What this PR does / why we need it:**
-
**Which issue(s) this PR fixes:**
-
**Additional Notes:**
-
###### Motivation for this change

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

@@ -0,0 +1,27 @@
name: "Code scanning - action"
on:
push:
pull_request:
schedule:
- cron: '0 4 * * 1'
jobs:
CodeQL-Build:
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
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1