Pull request author guide
Describes: Arbiter 0.1.3. For: anyone who opens pull requests in a repository Arbiter governs.
Arbiter checks pull requests that change sensitive parts of a repository, such as infrastructure or CI workflows. It
asks one question: has this change got the approvals and passing checks your organization’s policy requires? It
answers with a GitHub check named Arbiter / authorize and a comment on your pull request.
Not covered yet: trusted scans for Dependabot pull requests. They count only if Dependabot’s runs get the identity token the scans need; a section is added once that is confirmed. Pull requests from forks are in D8.
D1. What Arbiter / authorize means
Section titled “D1. What Arbiter / authorize means”The check’s result depends on your repository’s mode, which your administrator sets.
| Result | In advisory mode | In blocking mode |
|---|---|---|
| Success (green) | Nothing is missing | Nothing is missing. Arbiter does not stand in the way of merging |
| Neutral | Something is missing, but the merge is allowed while your organization tries Arbiter out | Not used |
| Failure (red) | Not used, except when Arbiter cannot read your policy repository, or cannot confirm that it is protected and its newest commit confirmed, or that your target branch requires Arbiter / authorize with up-to-date branches (your administrator sets both up: A3 and A8), and after a restart (below) |
Something is missing. The merge is blocked |
| In progress | Arbiter is checking, for a few seconds | The same; the merge waits |
While a check your policy requires is still running, Arbiter reports it as missing: a neutral check (red in blocking mode) that names it. When that check finishes, Arbiter checks again on its own.
A pull request that changes nothing the policy protects (docs or app code, for example) gets success with “No protected paths affected”. If your organization requires a check on every pull request, such as a secret scan, it gets success with “All policy conditions satisfied” once that check passes.
If Arbiter restarts while it is checking your pull request, it completes that check as failure, in either mode, saying the evaluation was interrupted. Push a new commit to get a new result (D6).
D2. Read the comment
Section titled “D2. Read the comment”Arbiter comments on your pull request each time it checks it. When something is missing, the comment has three parts:
- What this change touched: the protected areas your pull request changes.
- What is missing: each requirement that is not met yet, numbered.
- How to fix it: one step for each missing item, in the same order.
The check’s Details link opens a summary of the decision. If it does not load, your organization has not made that address reachable; the comment holds the same information.
Expected: each item under “How to fix it” names who must act (you, a team, or the Arbiter admin) and what they do.
D3. Get the right approval
Section titled “D3. Get the right approval”- Find the team the comment names, for example “Ask members of
acme/platformto approve (1 needed)”. - Ask someone in that team to review the pull request and choose Approve.
An approval counts only if all of these are true:
- it is the reviewer’s latest decisive review. Approve, request changes and dismissed count as decisive; a comment does not;
- it approves the latest commit. Push again, and the approval must be given again;
- the reviewer is an active member of the named team, in this organization;
- the reviewer’s account is on your policy’s approver list (policy-author manual, P16). An approval from an account that is not on the list does not count, and clears no hold. The comment adds one line with a number only, for example “1 approval came from accounts not on the policy’s approver list”: ask your administrator to add the account through a reviewed change if it should approve;
- the reviewer’s account is a user account, not a GitHub App;
- the reviewer did not open the pull request, author or commit any of its commits, or create or push to its branch.
Expected: after the approval, Arbiter re-checks within a few seconds and posts a new comment, which no longer lists that team. Earlier comments stay as they were.
D4. Why your own approval does not count
Section titled “D4. Why your own approval does not count”Arbiter excludes everyone who wrote or pushed the change: the pull request’s author, every commit’s author and committer, and everyone who pushed to the branch. This also covers someone whose commits were later rewritten by a rebase or force push. A change needs someone else’s eyes, so asking a teammate who pushed a fix to your branch to approve will not work either. GitHub itself does not let a pull request’s author approve it.
D5. Get a required check to pass
Section titled “D5. Get a required check to pass”Some protected changes need a check to pass too, for example a terraform-plan run. Your organization may also
require a check on every pull request, such as a secret scan.
- Open the Checks tab and find the check the comment names.
- If it failed, fix what made it fail and push. Let it run again.
Expected: when the named check passes on the latest commit, Arbiter re-checks on its own.
When your change edits a workflow or action (.github/workflows/**, .github/actions/**, action.yml or
action.yaml), or another file your policy lists as a check definition, check results count only if the team your
policy names for check definitions also approves. A workflow
change could otherwise make a check pass whatever it tests.
D6. Re-run Arbiter
Section titled “D6. Re-run Arbiter”Arbiter re-checks on its own when you push, when someone submits or dismisses a review, when a required check finishes, when the pull request is reopened, and when its target branch changes. To re-check it yourself:
-
Push a new commit to the pull request’s branch. With no change to make, push an empty one:
Terminal window git commit --allow-empty -m "Re-check" && git push
GitHub’s Re-run button on Arbiter / authorize does not start a new check in this release.
Expected: a new Arbiter / authorize run starts. A new commit needs its approvals again (D3). If the comment
says “Arbiter could not finish evaluating this pull request” twice in a row, send your Arbiter admin a link to the
check.
When GitHub says your branch is out of date, your organization requires pull requests to be up to date with their target branch before they merge. GitHub then refuses to merge a pull request that is behind, and offers Update branch. Arbiter wants this because a decision was made on the code as it stood: if the target branch moved since, the decision may no longer hold. Updating the branch is a new push, so Arbiter checks the pull request again and the new result is the one that counts (the new commit needs its approvals again, as above).
D7. See Arbiter’s verdict early
Section titled “D7. See Arbiter’s verdict early”Open your pull request as a draft. Arbiter checks drafts like any other pull request, so you see what is protected, what is missing and how to fix it before asking anyone to review. A check you can run before pushing is planned.
D8. Pull requests from forks
Section titled “D8. Pull requests from forks”Arbiter cannot read approvals or other checks on a pull request from a fork, so an approval on a fork never counts.
- Where your organization’s policy needs an approval for what you changed, a pull request from a fork is not allowed: a missing approval is a deny, and a hold stays a hold. The comment says “Open the pull request from a branch in this repository.”
- A change that needs no approval can still be allowed, but only if every check the policy requires for it is a trusted scan and has passed. Trusted scans are checks your organization runs from a protected workflow your pull request cannot change, such as a secret scan. They still run for a fork, and their results are stored. Any other required check never counts on a fork, so the pull request is not allowed.
- In advisory mode Arbiter blocks nothing about the change: a deny or a hold shows as a neutral check, an allow as a successful one, and the pull request can merge whatever it says. Two denials still apply in every mode: an unprotected policy repository, and a target branch that does not require up-to-date branches (your administrator sets both up, A3 and A8).
To get an approval counted:
- Push your branch to the repository itself.
- Open the pull request from that branch.
Your organization may also have turned off forking of private repositories.
D9. When Arbiter is down
Section titled “D9. When Arbiter is down”In blocking mode, a protected merge waits while Arbiter is down, because Arbiter fails closed: no check means no merge. Pull requests that change nothing protected still need the check too, if your organization requires it.
- Tell your Arbiter admin. They have a health page, and an uptime monitor that may already have alerted them.
- If the merge cannot wait, ask an admin who is allowed to break glass. They lift the check briefly, the merge happens under the normal review rules, and the merge is recorded and reviewed afterwards.
Do not ask anyone to add you to a bypass list: Arbiter’s setup keeps none.
When Arbiter is back, it does not check pull requests that changed while it was down. A pull request with no
Arbiter / authorize check, or one that failed with “evaluation interrupted”, gets a result when you push again (D6).
In advisory mode nothing is blocked while Arbiter is down, but a pull request changed in that time has no check until you push again.
Words you may see
Section titled “Words you may see”| In the comment or check | Means |
|---|---|
EVIDENCE_MISSING |
An approval or a passing check the policy needs is not there yet |
EVIDENCE_INVALID |
Evidence is there, but it does not count, for example a failed check |
ESCALATION_REQUIRED |
The change is held for a named team’s approval, for example security for an IAM change |
POLICY_UNAVAILABLE |
Arbiter could not read the policy for this repository. Tell your Arbiter admin |
POLICY_REPO_UNPROTECTED |
The policy repository is not protected, so Arbiter does not trust it. Tell your Arbiter admin |
BASE_NOT_KEPT_CURRENT |
The pull request’s target branch does not require pull requests to be up to date, or Arbiter could not read the branch’s rules, or the target branch is unknown, so Arbiter did not check the change. Nothing in your pull request needs to change: run the check again (D6), and if it repeats, tell your Arbiter admin. It applies in every mode |
EVALUATION_FAILED |
Arbiter could not finish. Push again (D6) |
CONDITIONS_SATISFIED |
Everything the policy needs is there |
NO_PROTECTED_PATHS |
Your change touches nothing protected |
Built from Arbiter 0.1.3 at commit 05d1dcb.