2022-11-26 13:05:57 +00:00
|
|
|
name: CodeQL
|
2021-01-28 17:38:29 +00:00
|
|
|
|
2022-11-26 13:09:19 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-01-28 17:38:29 +00:00
|
|
|
on:
|
2022-11-26 13:05:57 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 12 * * 6'
|
2021-01-28 17:38:29 +00:00
|
|
|
push:
|
2022-11-26 13:05:57 +00:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release/*'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2021-01-28 17:38:29 +00:00
|
|
|
pull_request:
|
|
|
|
|
2022-09-24 06:57:02 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2021-01-28 17:38:29 +00:00
|
|
|
jobs:
|
|
|
|
analyze:
|
2022-09-24 06:57:02 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
security-events: write # to upload SARIF results (github/codeql-action/analyze)
|
|
|
|
|
2021-01-28 17:38:29 +00:00
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-11-26 13:05:57 +00:00
|
|
|
language:
|
|
|
|
- go
|
2021-01-28 17:38:29 +00:00
|
|
|
steps:
|
2022-11-26 13:05:57 +00:00
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
-
|
|
|
|
name: Checkout HEAD on PR
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
run: |
|
|
|
|
git checkout HEAD^2
|
|
|
|
-
|
|
|
|
name: Initialize CodeQL
|
2023-12-29 23:05:55 +00:00
|
|
|
uses: github/codeql-action/init@v3.22.12
|
2022-11-26 13:05:57 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
-
|
|
|
|
name: Autobuild
|
2023-12-29 23:05:55 +00:00
|
|
|
uses: github/codeql-action/autobuild@v3.22.12
|
2022-11-26 13:05:57 +00:00
|
|
|
-
|
|
|
|
name: Perform CodeQL Analysis
|
2023-12-29 23:05:55 +00:00
|
|
|
uses: github/codeql-action/analyze@v3.22.12
|