-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.47 KB
/
codeql.yml
File metadata and controls
43 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CodeQL
# Runs CodeQL static analysis for Go on every push and PR against develop
# and main, plus a weekly full run every Monday. SARIF uploads to GitHub
# Code Scanning which is free on public repos. This workflow was parked
# under `workflow_dispatch:` while the repo was private (GHAS would have
# been required) — re-enabled 2026-04-12 after the public flip (TD-VUL-006).
on:
pull_request:
branches: [develop, main]
push:
branches: [develop, main]
schedule:
- cron: '0 6 * * 1' # weekly Monday 06:00 UTC
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [go]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- uses: github/codeql-action/init@f94817b9f0deeb3871261446912ae8f854d1b675 # codeql-bundle-v2.25.1
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- uses: github/codeql-action/autobuild@f94817b9f0deeb3871261446912ae8f854d1b675 # codeql-bundle-v2.25.1
- uses: github/codeql-action/analyze@f94817b9f0deeb3871261446912ae8f854d1b675 # codeql-bundle-v2.25.1
with:
category: "/language:${{ matrix.language }}"