-
Notifications
You must be signed in to change notification settings - Fork 27
56 lines (48 loc) · 1.64 KB
/
codeql.yml
File metadata and controls
56 lines (48 loc) · 1.64 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CodeQL Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Weekly scan — Tuesday 03:17 UTC (off-peak, avoids Monday congestion)
- cron: '17 3 * * 2'
permissions:
security-events: write
packages: read
actions: read
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- language: go
# build-mode: autobuild — CodeQL 2.25.x does not support
# build-mode:none for Go; autobuild runs `go build ./...` which
# is sufficient because the standard module builds cleanly on
# ubuntu-latest (verified by the Build CI job).
build-mode: autobuild
- language: javascript-typescript
# build-mode: none — default for JS/TS; no compilation needed.
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Initialize CodeQL
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Autobuild
if: matrix.build-mode == 'autobuild'
uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
with:
category: /language:${{ matrix.language }}