Skip to content

Prepare PR automation for GitHub’s December 2 pull_request_target default block #9221

Open
1 of 1 issue completed

Description

@ravelley

GitHub policy change

GitHub will block pull_request_target by default in affected public repositories starting December 2, 2026, unless an applicable Actions event policy explicitly allows it. Private/internal repositories and GitHub Enterprise Server are not affected.

Official announcement: https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/

Event Date Time (UTC)
First brownout November 9, 2026 16:00–18:00
Next brownout November 16, 2026 16:00–18:00
Permanent enforcement December 2, 2026 No start time specified in the announcement

During brownouts, affected workflow attempts create failed runs with an error annotation, but the workflows do not execute. Between brownouts, the default rule returns to evaluate mode. Waiting for a brownout to end restores temporary availability; it does not address December enforcement.

Observed impact

Fullsend’s automatic PR workflows use pull_request_target. During the November 9 brownout, the Fullsend workflow for agent-eval-harness PR #302 was blocked before the review agent started: failed run. Its GitHub error explicitly identified the scheduled brownout.

Contemporaneous pull_request_target startup failures were also observed in fullsend, agents, and strat-creator, while other event types continued to run. These examples establish broader exposure, not that every fleet repository has been individually confirmed affected.

Preserved GitHub error annotation

Affected run: https://github.com/fullsend-ai/agent-eval-harness/actions/runs/42664395038 — created November 9, 2026 at 17:25:01 UTC, event pull_request_target, conclusion startup_failure.

The exact annotation below was provided by the reporter from the GitHub run UI. It is preserved here so the evidence does not depend on run/log retention:

Workflows are being blocked due to a scheduled brownout of the default `pull_request_target` protection for affected public repositories. This window ends at November 9, 2026 at 18:00:00 UTC. If you need these workflows to run, ask an administrator to explicitly allow `pull_request_target` in an applicable Actions event policy. See https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target for guidance.

Requested outcome

Define and deliver a supported response before December 2, using the November 16 brownout as the next readiness checkpoint. Please assess whether Fullsend can accommodate the new default through shared workflow/dispatch changes rather than requiring consumers to opt out of GitHub’s protection.

This issue is about the policy change and fleet readiness, not prescribing a particular replacement architecture. Simply renaming the trigger must not move the same unsafe execution into another privileged event.

  • Inventory affected shared workflows and generated fleet callers, including automatic reviews, and identify the responsible maintainers/administrators.
  • Choose and document a supported approach that preserves existing authorization and keeps PR-controlled code/configuration from executing with privileged host credentials.
  • Where possible, retain GitHub’s default block. If an explicit event-policy allowance is necessary, document why and scope it to the reviewed workflows instead of assuming an organization-wide exception.
  • Deliver any shared workflow/scaffold changes and consumer migration instructions, including effects on fork PRs, inference credentials, and review publication.
  • Validate the chosen approach under the new restriction, document November 16 readiness, and complete the rollout before December 2.

Security and policy guidance: https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. fullsend-ai-triage commented on Nov 9, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 5:56 PM UTC · Completed 5:58 PM UTC

    Commit: 96e0c43 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.18

  2. added
    triaged
    priority/high
    component/dispatch
    component/ci
    security
    on Nov 9, 2026
  3. fullsend-ai-triage commented on Nov 9, 2026

    @fullsend-ai-triage

    Triage notes (updated)

    Status: scoped well enough to start, but this is a design-led effort rather than a quick fix. No open PR, closing PR or sub-issue addresses it yet.

    Affected surface in this repo (beyond the shim template): the shared dispatch workflow, the prioritize workflow, e2e and e2e-ok-to-test, vouch-check, the ADR Slack notifier and the repo's own fullsend workflow. Go routing/authorization code (CLI routing, harness dispatch auth and input parsing, event polling, scaffold tests) also branches on the pull_request_target event name, so any trigger change must be mirrored there and in its tests.

    Open decision for maintainers: the replacement approach. ADR 0009 records why pull_request_target was chosen (the base-branch shim holds the dispatch token). A new ADR should evaluate options against the authorization requirements in ADR 0054 and the fork-PR, inference-credential and review-publication effects the issue calls out. Renaming to another privileged event would not satisfy the request.

    Related open issues (not duplicates; coordinate fixes): #8356 (dispatch fan-out), #7054 (fork pull_request_target routing), #5296 (retro fork checkout), #7448 and #5477 (PR checkout handling), #7145 and #8912 (authorization on these routes).

    Warning: manual intervention required. The fix requires changing files under .github/workflows/ and the shim scaffold template. The code agent cannot modify workflow files under current permissions, so a human PR or maintainer action is needed for those parts. Automatic code dispatch is skipped.

    Unverified: exposure in other fleet repos is taken from the report and was not independently confirmed. The inventory step should confirm it per repo.

    Suggested validation:

    - Replay same-repo and fork PR events through routing; assert identical dispatch and authorization outcomes.
    - Assert no privileged-credential job executes PR-head code.
    - Lint shipped templates/workflows for non-allowlisted pull_request_target use.
    

    Labels: Deadline-driven security change affecting dispatch and CI that needs a design decision before implementation.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    Triage notes

    Status: this is well-scoped enough to start, but it is a design-led effort rather than a quick fix. Nothing in the repo or in open PRs addresses it yet.

    Affected surface found in this repo (beyond the shim template): the shared dispatch workflow, the prioritize workflow, e2e and e2e-ok-to-test, vouch-check and the ADR Slack notifier. Go routing/authorization code also branches on the pull_request_target event name, so a trigger change must be mirrored there and in its tests.

    Open decision for maintainers: the replacement approach. ADR 0009 documents why pull_request_target was chosen (the base-branch shim holds the dispatch token). A new ADR should evaluate options against the existing authorization requirements and the fork-PR, inference-credential and review-publication effects the issue calls out. Renaming the trigger to another privileged event would not satisfy the request.

    Related open issues touching the same code (not duplicates): #8356 (dispatch fan-out), #7054 (fork pull_request_target routing), #5296 (retro fork checkout), #7448 and #5477 (PR checkout handling). Their fixes should be coordinated with this migration.

    Heads-up: the fix requires changing workflow files under .github/workflows/ and the shim scaffold template. The code agent cannot modify workflow files under current permissions, so a human PR or maintainer action is required for those parts. Automatic code dispatch is skipped for this reason.

    Unverified: exposure in other fleet repos was taken from the report and not confirmed here. The inventory step should confirm it per repo.

    Suggested validation (proposed test): replay same-repo and fork PR events through routing and assert identical dispatch and authorization outcomes. Also assert that no privileged-credential job executes PR-head code, and lint shipped templates for any non-allowlisted pull_request_target use.


    Labels: This is a high-priority, deadline-driven security and CI/dispatch change that needs a design decision before implementation.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-triage commented on Nov 9, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 6:06 PM UTC · Completed 6:08 PM UTC

    Commit: 96e0c43 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.18

  5. added
    triaged
    and removed
    triaged
    on Nov 9, 2026
  6. waynesun09 commented on Nov 9, 2026

    @waynesun09
    Member

    Proposed approach: move the shim to pull_request in the next release, as a required upgrade

    Why a release alone can't fix it. GitHub applies the block to the trigger in each repo's own .github/workflows/fullsend.yaml. A blocked pull_request_target run never reaches reusable-dispatch.yml, so no dispatch-side change can unblock it. The fix has to ship as a new shim, which users get through their normal fullsend upgrade (fullsend repos install rewrites fullsend.yaml and the pin in one commit).

    The change. This follows github/gh-aw, which defaults to pull_request for same-repo PRs. Fork PRs only run when a maintainer acts, and gh-aw does not use workflow_run for PR events.

    Same-repo PRs Fork PRs
    Trigger pull_request pull_request, skipped by a same-repo guard (github.event.pull_request.head.repo.id == github.repository_id)
    Automatic review and retro Kept Not automatic. A maintainer comments /fs-review (issue_comment, authorized per ADR 0054)
    Secrets and inference credentials As today None on pull_request. The review runs from the /fs-review comment
    PR-head code with privileged credentials None. The dispatch checks out the base sha for pull_request None

    One fullsend PR, released together. It needs a human author, because workflow files are out of the code agent's reach.

    1. Shim template: change pull_request_target to pull_request, and add the same-repo guard.
    2. reusable-dispatch.yml: route pull_request like pull_request_target, and check out base.sha for it.
      • Today, every event except pull_request_target and pull_request_review checks out github.sha, which is the PR merge commit, so this must ship before any shim switches.
      • Also warn callers that still use pull_request_target.
    3. CLI: make IsLifecycleCloseAuthorized (which checks RawType == "pull_request_target") and the routing accept pull_request, with tests. ghaevent.go already maps both event names.

    Rollout.

    • Release notes mark the shim update as required.
    • fullsend-ai repos update through the .fullsend sync-scaffold run.
    • fullsend's own non-shim pull_request_target workflows are migrated separately: vouch-check, notify-adr-slack, release, and e2e / e2e-ok-to-test.

    Repos that don't upgrade lose automatic review and retro from Dec 2, and during the Nov 16 brownout. Issue triage, /fs-* commands (including /fs-review) and the pull_request_review fix loop keep working.

    Optional fallback, not the plan. An admin who can't upgrade before Dec 2 can allow pull_request_target for the shim file only, with a repo-level Actions event policy:

    {"name": "allow pull_request_target for the fullsend shim only", "enforcement": "active",
     "conditions": {"workflow_path": {"include": [".github/workflows/fullsend.yaml"], "exclude": []}},
     "rules": [{"type": "restrict_action_events",
                "parameters": {"allowed_events": ["issues", "issue_comment", "pull_request_target", "pull_request_review"]}}]}

    Apply it with gh api -X POST /repos/OWNER/REPO/actions/policies --input policy.json. The list is an allow list, so it must include every event the shim uses. We confirmed on a public Free-plan repo that this lets the shim's pull_request_target run succeed.

    Long term. A new ADR superseding ADR 0009 will cover a platform-side GitHub App webhook receiver. It authorizes PR events, then starts runs with workflow_dispatch, which brings back automatic fork-PR review and retro without any privileged PR trigger.

  7. 8 remaining items

  8. fullsend-ai-scribe commented on Nov 16, 2026

    @fullsend-ai-scribe

    Meeting update — 2026-11-16

    Relevant to this issue: preparing PR automation for the pull_request_target default block.

    • Decision: the pending ADR that changes workflow triggers for fork PRs was approved, so CI won't be shut off abruptly when the block takes effect.
    • Open question: once pull_request_target is dropped, how should the review agent still run automatically on fork PRs?

    Related PRs: #9227 (ADR 0164, shim on pull_request for same-repo PRs), #9230 (move the shim to pull_request), #9381 (ADR 0171, poll for fork PRs from authorized authors)

    Related docs: docs/ADRs/0009-pull-request-target-in-shim-workflows.md, docs/ADRs/0054-require-authorization-on-all-agent-dispatch-paths.md

    Next steps:

    Meeting notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/cicomponent/dispatchneeds-designpriority/highsecuritytriaged

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions