-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.21 KB
/
codeql.yml
File metadata and controls
52 lines (43 loc) · 1.21 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
name: codeql
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Weekly on Monday 06:17 UTC (off-peak, randomized minute to avoid
# contention with other repos scheduled on the hour).
- cron: "17 6 * * 1"
permissions:
contents: read
jobs:
analyze:
name: analyze (go)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
actions: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [go]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3.35.2
with:
languages: ${{ matrix.language }}
build-mode: autobuild
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3.35.2
with:
category: "/language:${{ matrix.language }}"