-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 930 Bytes
/
Copy pathcodeql.yml
File metadata and controls
38 lines (31 loc) · 930 Bytes
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
name: CodeQL
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "30 2 * * 0"
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # actions/setup-go v6.4.0
with:
go-version: 1.25.x
check-latest: true
- uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # github/codeql-action v4.35.5
with:
languages: go
- name: Build
run: |
go build ./...
(cd contrib && go build ./...)
- uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # github/codeql-action v4.35.5
with:
upload: always