Repository navigation
Description
Problem
GitHub blocks pull_request_target by default on public repos from 2026-12-02 (changelog; next brownout 2026-11-16, 16:00–18:00 UTC). A blocked run ends in startup_failure with no jobs and cannot be re-run. fullsend-ai/agents is public, so its own PR workflows that use the trigger stop running. fullsend moved its own workflows in fullsend-ai/fullsend#9245 (PR fullsend-ai/fullsend#9246); this issue applies the same design here.
merge_group, push, schedule, workflow_dispatch and workflow_call runs are not affected.
Inventory on origin/main (94037d2d)
| Workflow | Why it uses pull_request_target |
In this issue |
|---|---|---|
functional-tests.yml |
Functional evals need GCP WIF + EVAL_GH_TOKEN on fork PRs. A gate job authorizes (write+ author, trusted bot, or an ok-to-test label from a writer) before detect/functional-tests check out the PR head. functional-tests-complete fails with "Detect was skipped on pull_request_target" until authorized |
Yes |
behaviour-tests.yml |
Live behaviour tests need the dev environment secrets (AGENTS_BT_*) on fork PRs; same gate job and ok-to-test label |
Yes |
vouch-check.yml |
Closes and comments on PRs from unvouched first-time contributors; needs pull-requests: write on fork PRs |
Yes |
fullsend.yaml |
The fullsend consumer shim, synced from fullsend's scaffold | Out of scope: fullsend-ai/fullsend#9230 (ADR 0164, fullsend-ai/fullsend#9227) changes the shim, and the agents copy follows that sync |
The main ruleset requires only script-test, test, commit-lint and skillsaw (GitHub Actions, app 15368). They come from lint.yml and script-test.yml, which already run on pull_request, so no required check changes. functional-tests-complete and behaviour are not required, but reviewers read them, so every path below must still produce them on the PR head.
Model to match: gh-aw
github/gh-aw (main at 62ddc3a8) compiles PR agent workflows to plain pull_request with a same-repo guard and has no pull_request_target agent workflows in its own repo:
- Same-repo guard
github.event.pull_request.head.repo.id == github.repository_idin the jobif:(expression_builder.go L377-385). - Fork PRs run only through a maintainer action: an inline slash command on
issue_commentgated by the commenter's role, default[admin, maintainer, write](command.go L22-160, role_checks.go L152). - Writes live in jobs that never run PR code (architecture.mdx L145).
Target design
functional-tests.yml and behaviour-tests.yml
| Path | Trigger | What runs | Checks on the PR head |
|---|---|---|---|
| Same-repo PR | pull_request [opened, synchronize, reopened] |
gate (existing authorization) only when head.repo.id == repository_id, then the suites on head.sha with secrets |
functional-tests-complete, behaviour (unchanged names) |
| Fork PR, not authorized | pull_request |
gate skipped; no secrets, no PR code run |
functional-tests-complete fails with a message that names /ok-to-test <sha>; behaviour skipped |
| Fork PR, writer authorized | issue_comment /ok-to-test <full 40-char sha> (new ok-to-test.yml) |
An authorize job checks the commenter and the sha, then calls both workflows through workflow_call with pr_number and head_sha |
authorize creates check runs named functional-tests-complete and behaviour on that sha (GITHUB_TOKEN, checks: write, app 15368); a report job completes them from the called workflows' results |
merge_group, push to main, workflow_dispatch, workflow_call from fullsend release.yml |
unchanged | unchanged | unchanged |
Rules (same as fullsend-ai/fullsend#9246):
/ok-to-testnames one commit. The first line is/ok-to-testand the full 40-character sha the writer reviewed. A short prefix is refused (the author controls the commit and can grind a matching prefix). The run is authorized only when the PR head, read when the check runs, equals that sha; otherwisereason=stale_ok_to_test. No timing heuristics. A later push needs a new comment.- The comment is read from the API by comment id, never from the event payload, and must be on that PR and by that commenter. The commenter needs admin, maintain or write from the collaborator permission API, not
author_association. - Only
authorizeandreportholdchecks: write/pull-requests: write. Jobs that run PR code keepcontents: read+id-token: write, as in the gh-aw safe-outputs split. - Fork authors with write access also need
/ok-to-test: forkpull_requestruns get no secrets. - The
ok-to-testlabel no longer starts a run. Remove thelabeledhandling where nothing reads it any more. - Keep the existing
workflow_callinterface offunctional-tests.ymlbackward compatible: fullsend'srelease.ymlcalls it cross-repo withfullsend_refandtier. New inputs are optional. - Each called workflow needs its own concurrency group for
issue_comment(for examplefunctional-ok-to-test-<pr>/behaviour-ok-to-test-<pr>). In a called workflowgithub.workflowis the caller's name, so the currentformat('{0}-{1}', github.workflow, github.ref)fallback would put both callees in one group and deadlock. eval-fullkeeps working: on/ok-to-testthe tier isfullwhen the PR carrieseval-full, elserelease.
vouch-check.yml
pull_request cannot replace it: fork runs get a read-only token, and this repo requires approval for first-time contributors' pull_request runs (approval_policy: first_time_contributors), which is the population the vouch gate targets.
Move it to schedule (every 10 minutes) + workflow_dispatch, running a script that never checks out PR code. Same rules as today and as fullsend's scripts/vouch-sweep.sh:
- only PRs opened or reopened inside a lookback window (default 60 minutes), so the first run does not sweep older open PRs;
- skip
Botauthors, skip collaborators with write+, read.github/VOUCHED.tdfrom thevouchedbranch of fullsend-ai/fullsend (the org-wide list, as today); - close before commenting; one comment per PR across overlapping runs (marker comment); API errors never close a PR.
Codeable part (for the code agent)
The code agent cannot push .github/workflows/. The maintainer who takes over the PR adds the workflow edits. Everything else is in scope here, including .github/scripts/ and .github/actions/. Port from fullsend main (f31165c1a): scripts/check-e2e-authorization.sh + test, .github/actions/check-e2e-authorization/action.yml, scripts/vouch-sweep.sh + test.
/ok-to-test <sha>command mode in.github/scripts/check-e2e-authorization.shand.github/actions/check-e2e-authorization/action.yml, with cases in.github/scripts/check-e2e-authorization-test.sh:- new inputs
event_name,commenter_login,comment_id; new outputhead_sha; - reasons
ok_to_test,untrusted_commenter,missing_sha,stale_ok_to_test,error, per the rules above; - the gate comment text says
/ok-to-test <full sha of the latest push>instead of the label.
- new inputs
- Roll-up
.github/scripts/check-rollup-result.sh+check-rollup-result-test.sh: handlepull_requestandissue_commentinstead ofpull_request_target; drop thelabeledmirroring (no labeled trigger remains); the fork-PR failure message tells a writer to comment/ok-to-test <sha>. - Vouch sweep
.github/scripts/vouch-sweep.sh+.github/scripts/vouch-sweep-test.sh(stubbedgh,--dry-run) implementing the rules above. Replace.github/scripts/vouch-check-test.sh(it tests the inline script in the workflow) in theMakefile. - Guard test
.github/scripts/workflow-triggers-test.sh(yq): fails when any file in.github/workflows/declarespull_request_targetunderon:(map, list or string form);fullsend.yamlis the only allowlisted file, with a comment pointing at fix(dispatch)!: move the shim from pull_request_target to pull_request fullsend#9230; a check that the allowlist entry exists; self-tests on temp files, including a workflow that only comparesgithub.event_namestrings (must pass). - Wire the new tests into
make script-test. - Docs:
CONTRIBUTING.md"Functional tests for external contributors" (who needs/ok-to-test <sha>, that a push needs a new one, that fork authors with write access need it too),eval/README.md(tier row), and any comment that sayspull_request_targetor "the workflow file comes from main".
Out of scope
fullsend.yaml(fix(dispatch)!: move the shim from pull_request_target to pull_request fullsend#9230 and the agents sync).- An org or repo event-policy exception for
pull_request_target. functional-tests-nightly.yml,release.yml,lint.yml,script-test.yml(nopull_request_target).
Done when
- No workflow in
.github/workflows/other thanfullsend.yamldeclarespull_request_target, and the guard test enforces it. - A same-repo PR gets
functional-tests-completeandbehaviourfrompull_request. - A fork PR runs no PR code with secrets until a writer comments
/ok-to-test <sha>, and then getsfunctional-tests-completeandbehaviouron that sha. merge_group, push-to-mainand fullsendrelease.ymlruns are unchanged.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
waynesun09 commentedon Nov 12, 2026
/fs-code
Do not use
git commit -s; bot commits must not carry a DCO sign-off.fullsend-ai-triage commentedon Nov 12, 2026
🤖 Finished Triage · ✅ Success · Started 7:14 PM UTC · Completed 7:16 PM UTC
Commit:
94037d2· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19
fullsend-ai-coder commentedon Nov 12, 2026
🤖 Code · ❌ Terminated · Started 7:14 PM UTC · Ended 7:26 PM UTC
Commit:
94037d2· View workflow run →fullsend-ai-triage commentedon Nov 12, 2026
Triage found this issue actionable and complete. No open PR addresses it, and no duplicate exists.
Scope note: The full migration requires editing
.github/workflows/files (functional-tests.yml,behaviour-tests.yml,vouch-check.ymland the newok-to-test.yml). The code agent cannot push workflow files under its current permissions, so a maintainer must make those edits. Auto-promotion is skipped for that reason. The script, action, test, Makefile and docs part is listed in the issue and can be implemented without touching workflows.Verified: the existing files to change (
check-e2e-authorization.shand its test,check-rollup-result.shand its test,vouch-check-test.sh, and thecheck-e2e-authorizationaction) are all in this repo. Thevouch-sweep*.shandworkflow-triggers-test.shfiles are new.Timing: the next brownout is 2026-11-16 and the default block starts 2026-12-02, so the workflow edits are time-sensitive.
Suggested test case:
Labels: This is CI infrastructure work with a documentation component; no existing label fits it more precisely.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 12, 2026
🤖 Finished Code · ✅ Success · Started 7:14 PM UTC · Completed 7:26 PM UTC
Commit:
94037d2· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.50
ci(#1975): move functional, behaviour and vouch workflows off pull_re…
ci(#1975): give the roll-up a 5-minute limit and correct trust comments
ci(fullsend-ai#1975): add /ok-to-test <sha> gate, vouch sweep and tri…
Merge pull request fullsend-ai#1976 from fullsend-ai/agent/1975-move-…