From a5d1bb197d3e91b0293e37af6255c9de7dfdecc3 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Wed, 1 Jul 2020 18:54:52 -0400 Subject: [PATCH] Create codeql-analysis.yml (#71) * Create codeql-analysis.yml * Update .github/PULL_REQUEST_TEMPLATE.md --- .github/PULL_REQUEST_TEMPLATE.md | 10 +--------- .github/workflows/codeql-analysis.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 26094de..03c7f5d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,9 +1 @@ - -**What this PR does / why we need it:** -- - -**Which issue(s) this PR fixes:** -- - -**Additional Notes:** -- +###### Motivation for this change diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..4901e98 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -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