2022-08-20 09:55:20 -04:00
|
|
|
name: codeql
|
2020-10-01 08:21:23 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2020-10-01 09:29:05 -04:00
|
|
|
# ┌───────────── minute (0 - 59)
|
|
|
|
# │ ┌───────────── hour (0 - 23)
|
|
|
|
# │ │ ┌───────────── day of the month (1 - 31)
|
|
|
|
# │ │ │ ┌───────────── month (1 - 12)
|
|
|
|
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
|
|
|
|
# │ │ │ │ │
|
|
|
|
# │ │ │ │ │
|
|
|
|
# │ │ │ │ │
|
|
|
|
# * * * * *
|
|
|
|
- cron: '0 9 * * 4'
|
2020-10-01 08:21:23 -04:00
|
|
|
|
|
|
|
jobs:
|
2022-08-20 09:55:20 -04:00
|
|
|
codeql:
|
|
|
|
runs-on: ubuntu-20.04
|
2020-10-01 08:21:23 -04:00
|
|
|
steps:
|
2022-08-20 09:55:20 -04:00
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 04:37:30 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-10-01 08:21:23 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
2022-08-20 09:55:20 -04:00
|
|
|
-
|
|
|
|
name: Checkout HEAD on PR
|
2020-10-01 08:21:23 -04:00
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
2022-08-20 09:55:20 -04:00
|
|
|
run: |
|
|
|
|
git checkout HEAD^2
|
|
|
|
-
|
|
|
|
name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v2
|
2020-10-01 08:21:23 -04:00
|
|
|
with:
|
2022-08-20 09:55:20 -04:00
|
|
|
languages: go
|
|
|
|
-
|
|
|
|
name: Autobuild
|
|
|
|
uses: github/codeql-action/autobuild@v2
|
|
|
|
-
|
|
|
|
name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v2
|