ci(codeql): dormant config + policy doc to constrain future scans#14
Merged
Conversation
Adds `.github/codeql/codeql-config.yml` (paths-ignore + security-and-quality suite) and `README.md` documenting the Default Setup parameters for re-enabling CodeQL with restricted triggers. Dormant: no effect until CodeQL is enabled. Reduces scan duration by ~20-40% via path exclusions + lighter query suite. Combined with trigger limits (master-only push, no weekly schedule, documented in README), restores predictable cost if CodeQL is ever turned back on. Background: May 2026 CodeQL ate 824 GHA minutes (52% of org budget) before being disabled. This commit prepares the guardrails.
So that PRs that change only codeql config still trigger the required status checks (actionlint + inline-secrets). Without this, branch protection blocks codeql-only PRs indefinitely because the required workflows never fire on those changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/codeql/codeql-config.yml(paths-ignore +security-and-qualityquery suite)..github/codeql/README.mddocumenting Default Setup parameters for restricted re-enable.Effect
Dormant until CodeQL is enabled. When re-enabled (via the documented API command), scan duration drops ~20-40% from query-suite narrowing + path exclusions.
Test plan