Add CodeQL analysis workflow - #34
Conversation
Added codeql.yml to allow codeql to run now that this is a public repo.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
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. |
There was a problem hiding this comment.
🟡 Changes recommended
The workflow YAML has indentation errors that will prevent the matrix and steps from executing as intended.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a GitHub Actions workflow to enable CodeQL code scanning for this now-public repository.
Changes:
- Introduces a new
.github/workflows/codeql.ymlworkflow to run CodeQL on pushes/PRs tomainand on a weekly schedule. - Configures CodeQL analysis for
actionsandpython.
File summaries
| File | Description |
|---|---|
| .github/workflows/codeql.yml | Adds CodeQL scanning workflow for GitHub Actions + Python. |
Review details
Suppressed comments (2)
.github/workflows/codeql.yml:60
steps:is indented correctly, but the step list items are not nested under it (they are aligned withsteps:), which makes the workflow YAML invalid. This also updates checkout to match the repo’s existing SHA-pinning pattern (e.g.,.github/workflows/run_unit_tests.yml:23).
steps:
- name: Checkout repository
uses: actions/checkout@v7
.github/workflows/codeql.yml:90
- The remaining steps (manual build + analyze) are also not nested under
steps:due to indentation, so they won’t execute even if YAML parses. These should be indented to be part of thestepslist.
- name: Run manual build steps
if: matrix.build-mode == 'manual'
shell: bash
run: |
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Added codeql.yml to allow codeql to run now that this is a public repo.