A GitHub required check for AI-agent pull requests
The short answer
Add avouro-com/scopebond/packages/github-action@v1 as a required status check. It checks a pull request against your rules in your own Actions runner, fails an agent pull request that breaks a rule before it can merge, names the agent's bot account (Copilot, Codex, Claude and others) and signs a record you can check offline. A pull request from a person, not an agent, gets no record.
Add the workflow
Add the Action to a workflow and make the job a required status check on your protected branch (Settings → Branches).
# .github/workflows/scopebond.yml
name: Scopebond
on: pull_request
jobs:
policy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: avouro-com/scopebond/packages/github-action@v1
with:
policy: .scopebond/policy.jsonWhat it produces
The check passes or fails for each version of the pull request. With a signing key set (SCOPEBOND_ATTESTER_KEY), it signs a record naming the agent's bot account, which anyone can check offline with the matching public key.
Good to know
What this does not do
The check decides whether the pull request may merge. It does not see what the agent does on a developer's computer; Scopebond on the computer covers that. The signed record shows the check's decision on that version of the pull request, not what happened at run time.
Alternatives
- GitHub branch protection and CODEOWNERS — native required reviews; Scopebond adds a check for agent pull requests and a signed record.
- Snyk — finds vulnerable code and can fail a CI run; Scopebond decides what the agent may do and signs the decision.
Questions
Does it block a person's pull request?
It checks against your rules; a pull request that is not from a configured agent bot gets no Scopebond record, and you decide which authors the check applies to.
Where does the check run?
In your own GitHub Actions runner, against your rules file. Nothing leaves your CI, and the signing key stays in your runner.