Overview
OpenSRE can turn one GitHub security or quality finding into a local fix and, when approved, a pull request or a commit pushed straight to the default branch. It supports Dependabot alerts, code-scanning/CodeQL alerts, and GitHub Code Quality standard findings.Prerequisites
- Local checkout whose
originmatches the finding repository - GitHub token with the access listed under Credentials
- Optional coding-agent CLI (Pi, Claude Code, Codex, or Cursor) for findings that need broader reasoning
Setup
There is no dedicatedintegrations setup target for this tool. Connect GitHub in the OpenSRE app with repository write and security-alert read access. Configure the workspace:
Credentials
Tools
Related skill:
fixing-github-security-alerts.
Use it
In the interactive shell:origin. For a specific alert, include the alert URL or say the alert type and number:
What happens
- OpenSRE reads the GitHub alert or Code Quality finding details.
- It verifies the local checkout’s
originmatches the finding repository. - OpenSRE first tries a built-in local fixer when one safely applies.
- If no built-in fixer applies, OpenSRE runs the auto-detected (or pinned) coding agent CLI to implement the fix in the local checkout.
- If PR shipping is requested and approved, OpenSRE commits only the files the fix run changed, pushes an
opensre/github-security-fix-*branch, and opens a PR into the default branch. - If you ask to push straight to the default branch, OpenSRE makes the fix in a fresh clone of that branch, commits it there, and pushes it without force. If someone else pushed in the meantime, it rebases the fix once and pushes again; if the fix conflicts with their change, nothing is pushed.
Scheduled fixes on public repositories
A scheduled loop that opens PRs on a public repository should passquality_only=true. OpenSRE then fixes only code-scanning and Code Quality findings without a security severity, so a vulnerability fix is never published in a public PR before you can handle it privately.
Verify
There is no dedicatedintegrations verify target. Confirm readiness by:
- An authorized GitHub connection in the OpenSRE app with the scopes above
- Local checkout
originmatches the target repository - A coding agent CLI is available when built-in fixers do not cover the finding
Troubleshooting
Security
- Dual confirmation when shipping: edit first, then commit/push/PR.
- PR branches use the
opensre/github-security-fix-*prefix. - OpenSRE pushes to the default branch only when you ask it to, from a fresh clone so your local commits and uncommitted work never ride along, and never with force.
- Store tokens in
.envor your secret manager — not in source control.