chore(security): remove drift codeql.yml, enable GitHub-managed default setup#117
chore(security): remove drift codeql.yml, enable GitHub-managed default setup#117
Conversation
…lt setup Per org CI standard §2, CodeQL must use GitHub-managed default setup (Settings → Code security → Code scanning), not a per-repo workflow file. Per-repo codeql.yml files are treated as drift by the compliance audit. Actions taken: - Removed .github/workflows/codeql.yml (drift per-repo advanced setup) - Re-confirmed default setup via API: state=configured, query_suite=default The GitHub-managed default setup is already running CodeQL scans. The compliance audit 403 is a PAT scope issue in the audit bot (needs Administration:read scope on the audit bot token in petry-projects/.github). Closes #95 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe pull request removes the custom GitHub Actions CodeQL workflow file ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@don-petry This PR is ready for review and merge. What it does: Removes the drift Context on the recurring compliance finding:
Note: This supersedes open PRs #107 and #113 (same fix, green CI, but unmerged). You may want to close those once this is merged. |
|
There was a problem hiding this comment.
Pull request overview
Removes the repository-level CodeQL workflow to align with the org CI standard requiring GitHub-managed CodeQL default setup (and to eliminate compliance “drift” findings).
Changes:
- Deleted
.github/workflows/codeql.yml(per-repo CodeQL advanced setup workflow)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Summary
.github/workflows/codeql.yml— classified as drift by the org compliance audit (see CI standard §2)state=configured,query_suite=default)Why
Per org CI standard §2, CodeQL must be configured via GitHub-managed default setup, not a per-repo workflow file. The compliance audit flags any repo with a
codeql.ymlas drift. The per-repo workflow is also redundant since default setup is already running scans.Note on audit 403
The weekly compliance audit returns HTTP 403 when checking the default setup state. This is a PAT scope issue on the audit bot side (needs
Administration: write/reposcope). The CodeQL default setup is actuallyconfigured(verified with a properly-scoped token). Fixing the audit bot's PAT scope requires a change inpetry-projects/.github.Related PRs
This supersedes the same fix in PRs #113 and #107 (both have green CI but were never merged).
Closes #95
Generated with Claude Code
Summary by CodeRabbit