-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.41 KB
/
Copy pathcodeql.yml
File metadata and controls
52 lines (44 loc) · 1.41 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: [ develop ]
pull_request:
branches: [ develop ]
schedule:
- cron: '31 5 * * 1' # weekly, Monday 05:31 UTC
permissions:
contents: read
jobs:
analyze:
name: Analyze (Go)
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Initialize CodeQL
uses: github/codeql-action/init@a2983b8bed1923f44751c5c43237f479442827b3 # v3.29.5
with:
languages: go
# CodeQL's Go analysis has no `none` build mode, and autobuild
# can't run the eBPF codegen — build manually, same as ci.yml.
build-mode: manual
- name: Build (eBPF codegen + go build)
run: |
task setup
task generate UID=0 GID=0
go build ./internal/... ./cmd/...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@a2983b8bed1923f44751c5c43237f479442827b3 # v3.29.5
with:
category: "/language:go"