Skip to content

docs: runbook for the pull_request_target event policy - #231

Merged
bketelsen merged 2 commits into
mainfrom
lucilla/pull-request-target-policy
Nov 9, 2026
Merged

bketelsen merged 2 commits into
mainfrom
lucilla/pull-request-target-policy

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

From 2026-12-02, GitHub blocks every pull_request_target run in a public repository unless an applicable Actions event policy allows the event (default policy, changelog). The PR triage caller (ADR-0068, ADR-0077, ADR-0078) runs only on that event. A blocked caller run has no job: no level label, no risk:high, and no removal of ready-for-human after a push.

This PR adds docs/design/pull-request-target-policy.md, a settings runbook for an owner:

  • the frostyard organization policy: Active, all repositories, workflow paths .github/workflows/risk-paths.yml and .github/workflows/risk-paths-caller.yml, event rule pull_request_target only, no actor rule;
  • 1 repository policy in each of the 5 public bketelsen repositories with a caller (a personal account has no organization policies);
  • a test on frostyard/homebrew-tap (bot PR, label, push revocation, Dependabot PR, Policy insights), where 1 label event starts the caller and the unrelated publish.yml, so 1 action shows the allow and the block;
  • the inventory of pull_request_target workflows in the 331 non-archived frostyard and bketelsen repositories, with keep or move for each;
  • a check of the caller and pr-triage against GitHub's hardening list, with 1 known gap (readiness keeps the label when a head has 0 checks; by the spec).

Evidence for the policy scope: the brownout of 2026-11-09 16:00–18:00 UTC blocked caller runs as startup_failure with 0 jobs, on the caller path (for example run 42660432264). So the policy decision is on the caller run, and the pinned reusable workflow is a job of that run. The runbook test confirms this, and gives the fallback when it does not hold.

Also: an index line in docs/README.md and a back-link in docs/design/pr-triage-rollout.md.

Risk tier

Risk tier: 1 — docs only; no workflow, script or setting changes.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (design ↔ design; the ADRs and specs are linked from the doc)
  • New significant decision recorded as an ADR first, in this PR — not applicable: the runbook keeps the ADR-0068 caller running; it makes no new decision.

Verification

  • node scripts/check-docs.mjs green (110 docs, 2132 links)
  • make verify green (725 tests pass)

Cross-review: openai/gpt-6.1-sol, Ready at f5cc6cb (1 review at 37cfe16 with 1 low finding, fixed; 1 re-review, no finding). Revert test: exempt (docs only).

From 2026-12-02 GitHub blocks pull_request_target runs in public
repositories unless an Actions event policy allows the event. The PR
triage caller (ADR-0068, ADR-0077, ADR-0078) runs only on that event.
The runbook gives the organization policy, the repository policies of
the personal account, a test, the inventory of pull_request_target
workflows and a hardening check of the caller and pr-triage.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 9, 2026
@bketelsen
bketelsen merged commit 8dc26fa into main Nov 9, 2026
4 checks passed
@bketelsen
bketelsen deleted the lucilla/pull-request-target-policy branch November 9, 2026 18:21
@frostyard-machines frostyard-machines added ready-for-human Reviewed, CI green: ready for Brian to review and merge and removed ready-for-human Reviewed, CI green: ready for Brian to review and merge labels Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants