-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (60 loc) · 1.61 KB
/
codeql.yml
File metadata and controls
69 lines (60 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "CodeQL Security Analysis"
on:
push:
branches: [main, master]
paths-ignore:
- "docs/**"
- "openspec/**"
- "README*.md"
- "CHANGELOG.md"
- "AGENTS.md"
- "CLAUDE*.md"
- "CONTRIBUTING.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/copilot-instructions.md"
pull_request:
branches: [main, master]
paths-ignore:
- "docs/**"
- "openspec/**"
- "README*.md"
- "CHANGELOG.md"
- "AGENTS.md"
- "CLAUDE*.md"
- "CONTRIBUTING.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/copilot-instructions.md"
schedule:
- cron: '0 6 * * 1' # Run weekly on Monday at 6 AM UTC
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: +security-and-quality
- name: Install CUDA toolkit (for C++ analysis)
uses: Jimver/cuda-toolkit@v0.2.23
with:
cuda: '12.4.1'
method: 'network'
sub-packages: '["nvcc", "cudart", "cccl"]'
- name: Configure CMake (for C++ analysis)
run: cmake --preset release -DCMAKE_CUDA_ARCHITECTURES="80"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"