Fix analysis file per Github rec

This commit is contained in:
Dane Everitt 2020-12-25 15:10:31 -08:00
parent 510d46289b
commit 8fa4c50379
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -4,39 +4,29 @@ on:
push: push:
branches: branches:
- 'develop' - 'develop'
pull_request: pull_request:
branches: branches:
- 'develop' - 'develop'
schedule: schedule:
- cron: '0 9 * * 4' - cron: '0 9 * * 4'
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: language:
- go - go
steps: steps:
- name: Code Checkout - name: Code Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Checkout Head - name: Checkout Head
run: git checkout HEAD^2 run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v1
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1