2022-08-20 09:55:20 -04:00
|
|
|
name: codeql
|
2020-10-01 08:21:23 -04:00
|
|
|
|
|
|
|
on:
|
2023-10-25 06:22:08 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
- '[0-9]+.[0-9]+'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [ "master" ]
|
2020-10-01 08:21:23 -04:00
|
|
|
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:
|
2023-10-25 06:22:08 -04:00
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
timeout-minutes: 360
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
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
|
2023-10-25 06:22:08 -04:00
|
|
|
-
|
|
|
|
name: Update Go
|
2023-12-07 03:17:34 -05:00
|
|
|
uses: actions/setup-go@v5
|
2023-10-25 06:22:08 -04:00
|
|
|
with:
|
|
|
|
go-version: '1.21'
|
2022-08-20 09:55:20 -04:00
|
|
|
-
|
|
|
|
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
|
2023-10-25 06:22:08 -04:00
|
|
|
with:
|
|
|
|
category: "/language:go"
|