2020-12-15 22:59:06 +00:00
|
|
|
name: CodeQL
|
2020-07-04 19:30:38 +00:00
|
|
|
on:
|
2020-11-15 20:04:03 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'develop'
|
2020-07-04 19:30:38 +00:00
|
|
|
pull_request:
|
2020-12-15 22:59:06 +00:00
|
|
|
branches:
|
|
|
|
- 'develop'
|
|
|
|
schedule:
|
|
|
|
- cron: '0 9 * * 4'
|
2020-07-04 19:30:38 +00:00
|
|
|
jobs:
|
2020-12-15 22:59:06 +00:00
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language:
|
|
|
|
- go
|
2020-07-04 19:30:38 +00:00
|
|
|
steps:
|
2020-12-15 22:59:06 +00:00
|
|
|
- name: Code Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Checkout Head
|
|
|
|
run: git checkout HEAD^2
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v1
|
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v1
|