Skip to content

chore(security): remove drift codeql.yml, enable GitHub-managed default setup#113

Open
don-petry wants to merge 2 commits intomainfrom
claude/issue-95-20260418-1852
Open

chore(security): remove drift codeql.yml, enable GitHub-managed default setup#113
don-petry wants to merge 2 commits intomainfrom
claude/issue-95-20260418-1852

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Re-enabled GitHub-managed CodeQL default setup via API (state=configured, query_suite=default)
  • Removed the per-repo codeql.yml workflow file, which is classified as drift by the org CI standards

Why

Per ci-standards.md §2, CodeQL must be configured through GitHub's default setup (Settings → Code security), not via a per-repo workflow file. The standard explicitly states: "per-repo codeql.yml files are treated as drift by the compliance audit."

The existing codeql.yml was an advanced setup that duplicates what GitHub's managed default setup provides automatically (auto-detected languages, managed analyzer versions).

Changes

  • Deleted .github/workflows/codeql.yml (drift per org standard)
  • Default setup re-confirmed configured via: gh api -X PATCH repos/petry-projects/TalkTerm/code-scanning/default-setup -F state=configured -F query_suite=default (triggered run #24189978053)

Note on compliance audit 403

The compliance audit has been consistently reporting a 403 ("Resource not accessible by personal access token") when it tries to read the code-scanning default-setup state. This is an audit-side token permissions issue — the audit bot's PAT lacks the administration:read scope needed for the code-scanning configuration endpoint. The actual configuration is state=configured (verifiable with a properly-scoped token). This PR removes the drift codeql.yml which is the actionable code change; the 403 in the audit will need to be resolved by updating the audit bot's token scopes in petry-projects/.github.

Closes #95

Generated with Claude Code

…ult setup

Per org CI standards §2, CodeQL must be configured through GitHub-managed
default setup (Settings → Code security), not via a per-repo workflow file.
Per-repo codeql.yml files are explicitly classified as drift by the compliance
audit.

Default setup is already configured (state=configured, query_suite=default)
and was re-confirmed via API before this commit.

Closes #95

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 18, 2026 18:56
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 55 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 51 minutes and 55 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2d3cdcf6-2ce8-4cdf-a365-3642f534ced2

📥 Commits

Reviewing files that changed from the base of the PR and between 051f051 and 221274c.

📒 Files selected for processing (1)
  • .github/workflows/codeql.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-95-20260418-1852

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@don-petry
Copy link
Copy Markdown
Contributor Author

@don-petry — this PR removes the drift codeql.yml per org CI standards §2 and re-confirms the GitHub-managed default setup is configured. CI checks are running. Please review and merge when ready.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes the repository’s custom CodeQL GitHub Actions workflow to align with org CI standards that require GitHub-managed CodeQL default setup.

Changes:

  • Deleted .github/workflows/codeql.yml (previous advanced CodeQL workflow) to eliminate compliance “drift”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

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.

Compliance: codeql-default-setup-not-configured

2 participants