ci: set up codeql static analysis workflow#237
Conversation
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
@jules the Code Quality tests are failing. CodeQL is returning:
|
🔍 CodeQL CI Investigation & FindingsWe have conducted a thorough investigation into why the CodeQL workflow is failing with the 1. Token Permissions Issue (Resolved)Initially, the workflow failed because PRs created by automated bots (like 2. Advanced Security Licensing (Root Cause)Although the token permissions were corrected, the SARIF upload still failed with a new error:
We attempted to programmatically enable Code Scanning for this repository via the GitHub API/CLI, which yielded the following exact output:
{
"message": "Advanced security has not been purchased.",
"documentation_url": "https://docs.github.com/rest/repos/repos#update-a-repository",
"status": "422"
}
gh: Advanced security has not been purchased. (HTTP 422)Conclusion:
Alternatives to consider:
|
|
Status Update: Due to the GitHub Advanced Security licensing requirements for Private repositories, the automated CodeQL integration via GitHub Actions is not possible at this time. We will defer this PR for now and continue relying on the existing |
|
Summary
This PR adds a CodeQL static analysis workflow to the CI pipeline. This will enable automatic security vulnerability detection and satisfy the branch protection requirements for code scanning results on the
mainbranch.Changes
.github/workflows/codeql.ymlwith standard Python configuration.main.Checklist
ruff check .passesruff format --check .passesPYTHONPATH=src mypy src/app/passespytestpassesCloses
Closes #99
Related
Related to #97, #98
Reviewers
🤖 Bot reviewers: please tag @jules in your feedback so I can act on it.
Fixes #96
PR created automatically by Jules for task 2312544910388613847 started by @edsonesf