-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1005 Bytes
/
codeql.yaml
File metadata and controls
44 lines (37 loc) · 1005 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
39
40
41
42
43
44
name: CodeQL
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 6 * * 1'
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze:
name: Analyze (Go)
runs-on: depot-ubuntu-24.04-8
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
- name: Initialize CodeQL
uses: github/codeql-action/init@f5c2471be782132e47a6e6f9c725e56730d6e9a3 # v3.32.3
with:
languages: go
- name: Build
env:
GOFLAGS: -mod=vendor
run: go build ./...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f5c2471be782132e47a6e6f9c725e56730d6e9a3 # v3.32.3