forked from plexara/mcp-test
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.78 KB
/
Copy pathcodeql.yml
File metadata and controls
55 lines (47 loc) · 1.78 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
53
54
55
name: CodeQL
# This is the project's authoritative CodeQL configuration. If GitHub's
# default-config CodeQL is also enabled (Settings -> Code security ->
# Code scanning -> CodeQL analysis -> "Default"), every PR will run two
# identical scans and bill twice. Set the default to "None" or "Custom"
# pointing at this workflow to dedupe.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly on Monday at 06:00 UTC. Catches new query updates and any
# vulnerabilities introduced via dependencies that no PR-time scan
# would have surfaced.
- cron: "0 6 * * 1"
permissions: read-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
security-events: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "1.26.2"
cache: true
- name: Initialize CodeQL
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
with:
languages: go
# security-and-quality bundles the security pack with style /
# correctness rules. Project-specific query exclusions live
# in the config-file; findings post to the repo's Security tab.
config-file: ./.github/codeql/codeql-config.yml
- name: Autobuild
uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
with:
category: "/language:go"