ci: replace CodeQL default setup with Semgrep#16
Merged
DrWheelicus merged 3 commits intomainfrom Apr 8, 2026
Merged
Conversation
CodeQL's GitHub-managed default setup skips Dependabot PRs entirely, causing required status checks to never run. Replace it with a Semgrep CE workflow that triggers normally on all pull_request events. - p/default: curated high-confidence JS/TS security rules - p/github-actions: command injection and secrets inheritance checks
Coverage Report
File CoverageNo changed files found. |
149caf9 to
235bc56
Compare
Add the synchronize event type so the check appears alongside every new batch of status checks, not only on open/edit/reopen.
235bc56 to
5c0e19c
Compare
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.
Pull Request
What Changed
Replace CodeQL's GitHub-managed "default setup" with a Semgrep CE workflow. The default setup skips Dependabot PRs entirely (checks complete instantly as
NEUTRAL), which blocks merging when those checks are required. Semgrep runs as a normal workflow file and triggers on allpull_requestevents including Dependabot.Also updated the "Required status checks" ruleset to require
Scan(Semgrep) instead ofAnalyze (javascript-typescript)andAnalyze (actions)(CodeQL), and disabled the CodeQL default setup via the API.Additionally, added
synchronizeto the PR title lint workflow's event types so the check re-runs on every push, not only on open/edit/reopen.Type of Change
Related Issues
N/A
Validation
npm run lintnpm run typechecknpm testnpm run build(No source code changes -- CI-only change.)
Behavior and Risk
p/defaultcovers high-confidence JS/TS security rules;p/github-actionscovers workflow injection and secrets inheritance checks. Scan time drops from ~2-3 min to ~10 seconds.Screenshots / Logs (if applicable)
N/A
Checklist
CONTRIBUTING.md