Skip to content

Commit 3329f90

Browse files
derek73claude
andauthored
Add CodeQL scanning for Python (#249)
* Add CodeQL scanning workflow for Python Uses the default query suite (not security-extended) and excludes tests/docs/dist from analysis to keep initial findings low-noise. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Bump codeql-action to v4 v3 is slated for deprecation in December 2026. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Restore actions-workflow scanning, drop unused path exclusions Default setup was scanning both python and actions languages; the python-only advanced workflow silently dropped actions coverage (which previously caught a real missing-workflow-permissions alert). The tests/docs/dist exclusions weren't preventing any actual findings - all historical alerts are in nameparser/config/regexes.py - so drop that config file rather than carry unused maintenance. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent a104373 commit 3329f90

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '30 4 * * 1'
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
21+
steps:
22+
- uses: actions/checkout@v7
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v4
26+
with:
27+
languages: python, actions
28+
29+
- name: Perform CodeQL Analysis
30+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)