Your merge queue pipelines can become blocked if you:Documentation Index
Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
Use this file to discover all available pages before exploring further.
- Use Semgrep Managed Scans to automatically scan your projects
- Use GitHub merge queues to automate pull request merges
- Have made the Semgrep scan a required check
Why Semgrep doesn’t run in merge queues
Semgrep doesn’t run in merge queues because:- Diff-aware scans during a merge queue check aren’t meaningful. The purpose of a diff-aware scan is to catch issues before code is merged. Pull requests in a merge queue are already approved for merged.
- Full scans take a long time, significantly delaying merges for larger repositories.
Workaround
To keep Semgrep required for pull requests without blocking merge queues, define two separate GitHub rulesets:- Pull request ruleset for the main branch: requires the Semgrep check to pass before merging
- Merge queue ruleset for the main branch: does not require the Semgrep check. Instead, this uses a placeholder check that runs on
merge_group.