-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.01 KB
/
Copy pathcodeql.yml
File metadata and controls
39 lines (33 loc) · 1.01 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
name: codeql
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly on Monday at 06:00 UTC
- cron: "0 6 * * 1"
permissions:
security-events: write
contents: read
# Required for private repos; harmless on public
actions: read
jobs:
analyze:
name: Analyze (Go)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
# Single source of truth: go.mod's go directive.
go-version-file: "go.mod"
cache: true
- uses: github/codeql-action/init@42c378ffbb438be29e3e1848d520fb0a8ee1c271 # v3.38.0
with:
languages: go
# Extend with security-and-quality for a broader ruleset
queries: security-extended
- uses: github/codeql-action/analyze@42c378ffbb438be29e3e1848d520fb0a8ee1c271 # v3.38.0
with:
category: "/language:go"