Skip to content

Commit 9cc2a5f

Browse files
committed
fix: add CodeQL workflow to replace Default setup
The CodeQL "Default setup" configured via GitHub UI was causing "2 configurations not found" warnings on PRs because the /language:actions and /language:python configurations on main couldn't be matched on PR branches. Adding an explicit workflow file ensures consistent CodeQL analysis across all branches. https://claude.ai/code/session_0183rfcNCEDFZcGrvrUbb97h
1 parent 4610345 commit 9cc2a5f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "25 14 * * 1"
10+
11+
permissions:
12+
security-events: write
13+
contents: read
14+
actions: read
15+
16+
jobs:
17+
analyze:
18+
name: Analyze (${{ matrix.language }})
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- language: python
25+
build-mode: none
26+
- language: actions
27+
build-mode: none
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v6
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v3
35+
with:
36+
languages: ${{ matrix.language }}
37+
build-mode: ${{ matrix.build-mode }}
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3
41+
with:
42+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)