feat: add CodeQL security analysis workflow#40
Conversation
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>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
|
| Filename | Overview |
|---|---|
| .github/workflows/codeql-analysis.yml | New CodeQL security scanning workflow with parallel matrix jobs; concurrency group correctly includes matrix.language, permissions are minimal and appropriate |
Sequence Diagram
sequenceDiagram
participant GH as GitHub Event
participant WF as CodeQL Workflow
participant PY as analyze (python)
participant JS as analyze (javascript)
participant SEC as Security Tab
GH->>WF: push to main / PR / weekly schedule
WF->>PY: matrix job: python (parallel)
WF->>JS: matrix job: javascript (parallel)
PY->>PY: checkout → init CodeQL → analyze
JS->>JS: checkout → init CodeQL → analyze
PY-->>SEC: upload SARIF results
JS-->>SEC: upload SARIF results
Reviews (2): Last reviewed commit: "fix: move concurrency inside job to avoi..." | Re-trigger Greptile
… 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>
What
Why
How
.github/workflows/codeql-analysis.ymlCan this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Database Migrations
Env Config
Relevant Docs
Related Issues or PRs
Dependencies Versions
Notes on Testing
Screenshots
N/A
Checklist
I have read and understood the Contribution Guidelines.