Overview
OpenSRE can turn one GitHub security or quality finding into a local fix and, when approved, a pull request. 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. Configure the workspace and token:
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.
Verify
There is no dedicatedintegrations verify target. Confirm readiness by:
- Valid
GITHUB_TOKEN/GH_TOKEN(oropensre integrations verify github) 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. - Store tokens in
.envor your secret manager — not in source control.