Audit repository workflows
Use the bundled dependency-free auditor. Lead with evidence and distinguish a finding from proof of authorship, intent, compromise, or exploitability.
Workflow
- Resolve the exact repository directory. Do not scan outside the user's stated scope.
- Read
references/commands.mdand run the read-only audit first. - Summarize critical and high findings, the workflow/event path that triggers each finding, and the documented safe remediation.
- Generate a patch only when the user requests a fix or patch. The
fixcommand emits unified diff text and never edits the target repository. - Review every proposed patch before recommending application. Call out changes that need repository-owner judgment.
Guardrails
- Never install a defense profile, edit repository settings, commit, push, merge, close issues, or change permissions without a separate explicit request.
- Do not label a contributor, account, pull request, or commit as malicious based on heuristic findings.
- Treat exit code
2from--fail-onas a policy threshold result, not an auditor crash. - Keep SARIF or JSON output private when it contains sensitive workflow paths or security details.
- If the target is not a Git repository, explain the reduced provenance context rather than inventing repository identity.
Output
Return: audit scope, finding counts, prioritized findings, evidence locations, remediation options, limitations, and whether a patch was generated.