Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

PR triage and auto-labeling fail at startup: GitHub now blocks pull_request_target by default #1566

Todo

Description

@1yakub

Since 2026-12-03 09:02 UTC, every pull_request_target run of triage.yml and auto-label-pr.yml ends in startup_failure. The run page gives the reason (example run):

GitHub restricts pull_request_target on public repositories by default. To allow the event trigger, configure an Actions policy.

GitHub's guide says it began to enforce this default policy on December 2, 2026, for public repositories with no Actions event policy that allows the event: default policy for pull_request_target. The last pull request triage run that succeeded was at 2026-12-02 19:31 UTC (#1552). Issue triage, on the issues event, still runs.

Effect

Pull requests opened since then get no requested reviewer and no labels. Five are open with no requested reviewer: #1558, #1562, #1563, #1564, #1565. docs/CONTRIBUTING.md says stage 2 runs even when stage 1 fails, "so every item reaches a person"; for pull requests that is not true at the moment.

The same failure is in other repositories of the org: the Require Linked Issue workflow of python-sdk and go-sdk fails at startup on pull_request_target since December 3.

Fix

An admin adds an Actions event policy that allows pull_request_target for this repository, or for the org, as the guide describes. A change in this repository cannot fix it.

Moving the workflows to pull_request would not work: on a pull request from a fork, that event gets a read-only GITHUB_TOKEN, so it cannot request a reviewer or add a label.

For the policy decision: neither workflow checks out pull request code. triage.yml checks out this repository with no ref, which is the default branch, and the modelcontextprotocol/access roster; auto-label-pr.yml has no checkout step.

Written with AI (Claude Code): the investigation and this text.

Activity

  1. added
    bug
    P2
    T-CI
    ready for work
    on Dec 3, 2026
  2. github-actions commented on Dec 3, 2026

    @github-actions
    Contributor

    @connor4312 is on triage rotation this week and is the reviewer for this one.

    Codex labeled this bug / P2 (T-CI). Please confirm or correct those labels.

    Automated triage. Labels are a first pass and the assigned maintainer has the final say.

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

Metadata

Metadata

Assignees

Labels

P2T-CIbugready for work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions