Skip to content

Commit b78ec29

Browse files
abhizipstackclaude
andauthored
feat: add CodeQL security analysis workflow (#40)
* feat: add CodeQL security analysis workflow Adds automated security scanning for Python and JavaScript: - Runs on PRs to main and pushes to main - Weekly scheduled scan (Monday 6am UTC) - Results visible in GitHub Security tab + PR checks - Complements SonarCloud (code quality) with SAST (security) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: move concurrency inside job to avoid matrix jobs cancelling each other Concurrency group now includes matrix.language so Python and JavaScript analysis run independently without cancelling each other. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 957fbfc commit b78ec29

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: "0 6 * * 1" # Weekly Monday 6am UTC
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
if: "! github.event.pull_request.draft"
16+
concurrency:
17+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}-${{ matrix.language }}
18+
cancel-in-progress: true
19+
permissions:
20+
security-events: write
21+
contents: read
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [python, javascript]
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)