Skip to content

Add CodeQL workflow to satisfy required code-scanning check - #89

Merged
pendingintent merged 1 commit into
mainfrom
pi-add-codeql-workflow
Sep 16, 2026
Merged

pendingintent merged 1 commit into
mainfrom
pi-add-codeql-workflow

Conversation

@pendingintent

Copy link
Copy Markdown
Owner

Summary

  • The repo's org-wide ruleset (rulesets/14448750) requires a passing CodeQL code_scanning result on every PR into every branch, but no CodeQL workflow existed anywhere in .github/workflows/ — so that required check could never run or resolve, leaving PRs (e.g. Merge release-v0.7 into main #88) permanently BLOCKED at "Waiting for Code Scanning results."
  • Adds .github/workflows/codeql.yml, analyzing Python with github/codeql-action. Mirrors ci.yml's push/pull_request on all branches (["**"]) so results attach to PRs against any branch, not just main, plus a weekly scheduled scan of the default branch.

Note

This only takes effect for branches that pick up this workflow file (merged into, or rebased on top of, this change). It won't retroactively run on already-open PRs whose head branch predates this file (e.g. #88, #79) unless those branches also merge/rebase this in.

Test plan

  • YAML validated (python -c "import yaml; yaml.safe_load(...)")
  • Mirrors the existing, working ci.yml trigger pattern
  • Confirm the Analyze (python) check appears and passes on this PR once Actions runs it

The repo-wide ruleset requires a passing CodeQL code-scanning result
before any PR can merge, but no CodeQL workflow existed anywhere in
.github/workflows/ — every PR (e.g. #88) was permanently stuck at
"Waiting for Code Scanning results" with no way to resolve it.

Mirrors ci.yml's push/pull_request-on-all-branches trigger so results
attach to PRs against any branch, not just main, plus a weekly schedule
scan of the default branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@pendingintent
pendingintent merged commit f4bbd39 into main Sep 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants