-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.12 KB
/
Copy pathcodeql.yml
File metadata and controls
43 lines (36 loc) · 1.12 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
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "30 2 * * 0"
permissions:
contents: read
jobs:
analyze:
permissions:
actions: read
contents: read
security-events: write
name: analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # actions/checkout v7.0.0
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # actions/setup-go v6.4.0
with:
go-version: 1.26.x
check-latest: true
# Keep every CodeQL action component on the same release; mixing init and
# analyze versions can produce incompatible database formats.
- uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # github/codeql-action v4.37.1
with:
languages: go
- name: Build
run: |
go build ./...
(cd contrib && go build ./...)
- uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # github/codeql-action v4.37.1
with:
upload: always