Skip to content

ci: drop pull_request_target workflows - #766

Merged
retr0h merged 2 commits into
mainfrom
ci/no-pull-request-target
Dec 6, 2026
Merged

retr0h merged 2 commits into
mainfrom
ci/no-pull-request-target

Conversation

@retr0h

@retr0h retr0h commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

GitHub now blocks pull_request_target on public repositories by default (https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target). From 4 December 2026 each Labeler and Greetings run in each osapi-io repository failed at startup and sent a failure email.

  • Labeler: pull_request_target becomes pull_request. Each pull request comes from a branch of the same repository, so the token can write labels. Dependabot pull requests get the write token from the permissions: key.
  • Greetings: deleted. It welcomes first-time contributors, and the organization has none.
  • org-status audit reference: no workflow uses pull_request_target now, and GitHub blocks it.

Component pull requests that make the same change:

Not tested: a Labeler run on pull_request. This pull request is the first one; its own Labeler check shows the result.

🤖 Generated with Claude Code

GitHub now blocks pull_request_target on public repositories by
default, so each Labeler and Greetings run failed at startup from
4 December 2026 and sent a failure email.

The labeler runs on pull_request. Each pull request here comes from a
branch of the same repository, so its token can write labels. The
greetings workflow welcomed first-time contributors, which this
organization does not have, so it is deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: changes requested (head 7143014)

  1. .claude/skills/work-an-issue/SKILL.md:41-43 (not in the diff): "Usually the only comment is from a greeting bot, and it says nothing." This pull request deletes the greetings workflow, so a new issue gets no greeting comment, and the sentence becomes incorrect. Rule: specs AGENTS.md, Make a change, "Do not keep backward compatibility" ("When a change makes something old or inconsistent, change it or delete it everywhere, in the same change"). Fix: remove the greeting-bot clause, for example "Read the comments before you make a plan. A human comment can make the problem smaller, or refuse an approach." (work-an-issue/README.md:57 tells a past event and can stay.)
  2. Description: "Component pull requests that make the same change" is not true at the current heads. Each of the seven component pull requests deletes only greetings.yml and keeps pull_request_target in labeler.yml. Rule: specs AGENTS.md, Make a change, "Change a shared convention in each repository at the same time". Fix: the component pull requests change their labeler.yml, as this one does (findings are on each of them). No change here is necessary for this item after they do.

Checked and correct: title (38 characters), commit body wrap at 72, ci type (specs CONTRIBUTING.md, Branches and commits, uses the Conventional Commits types), no em dash or "MUST" in audit.md, back links to each component pull request, the audit.md text agrees with the new labeler trigger.

@retr0h retr0h removed the needs-standards-review The author asks for the independent standards review label Dec 6, 2026
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Code review: changes requested (head 7143014). 1 finding, 1 note.

  1. .claude/skills/work-an-issue/SKILL.md:41-42 says "Usually the only comment is from a greeting bot, and it says nothing." This change deletes the greeting bot, so a new issue has no such comment, and the sentence is wrong for each issue opened after the merge. Fix: change it to state that an old issue can have a comment from the greeting bot that is now removed, or remove the clause. (work-an-issue/README.md:56-57 tells a past event, so it stays correct.)

Note, not a defect of this diff: the audit.md text "No workflow here uses it" and the description sentence "Component pull requests that make the same change" are true only when the seven component pull requests also change labeler.yml. At this time each of them deletes only greetings.yml and keeps pull_request_target in labeler.yml. Each has a code-review comment for it. Merge this pull request only together with, or after, the component fixes.

Checked: the diff; that labeler.yml on the head has pull_request and the permissions: block (contents: read, pull-requests: write), which also gives the write token to a Dependabot pull request; the Labeler run of this head on pull_request (success, and it applied the kind/ labels); the pull_request_target Labeler and Greetings runs (startup failure, expected, because they run from the base branch); a search of the head for pull_request_target, greetings and first-interaction (vetting.md and vet-pr.py keep pull_request_target as a STOP signal, which is correct).

@retr0h retr0h removed the needs-code-review The author asks for the independent code review label Dec 6, 2026
The greetings workflow is deleted, so no bot comment is on a new issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in 86f0e34: work-an-issue/SKILL.md no longer mentions a greeting bot comment. work-an-issue/README.md:57 tells of a past event, so it stays. The component pull requests now change labeler.yml too, so the description and audit.md are true.

@retr0h retr0h added needs-code-review The author asks for the independent code review needs-standards-review The author asks for the independent standards review standards-reviewed An independent reviewer checked this PR against the standards and removed needs-standards-review The author asks for the independent standards review labels Dec 6, 2026
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: approved (head 86f0e34). Checked: title (38 characters) and commit subjects of 50 characters or fewer with bodies wrapped at 72 (specs CONTRIBUTING.md, Branches and commits); the stale greeting-bot sentence in work-an-issue/SKILL.md is removed (specs AGENTS.md, Make a change); labeler.yml and greetings.yml match the seven component pull requests (specs AGENTS.md, shared convention); back links to each component pull request; no em dash or MUST in changed text (CONSTITUTION.md, The documents); no value of a real host.

@retr0h retr0h added code-reviewed An independent reviewer checked correctness, bugs and edge cases and removed needs-code-review The author asks for the independent code review labels Dec 6, 2026
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Code review: approved (head 86f0e34). Checked: the diff; .github/workflows/labeler.yml on the head uses pull_request and keeps permissions: contents: read, pull-requests: write, which a Dependabot pull request also honours; the Labeler run of this head on pull_request passed and applied the kind/ labels; the pull_request_target Labeler and Greetings runs fail at startup, which is expected because they run from the base branch until the merge; greetings.yml is deleted, and a search of the head finds no other pull_request_target, first-interaction or greetings reference in .github. work-an-issue/SKILL.md no longer says that a greeting bot comments on issues. audit.md is now true, because each component pull request changes its Labeler trigger too. vetting.md and vet-pr.py keep pull_request_target as a STOP signal, which is correct.

@retr0h
retr0h merged commit ad924e2 into main Dec 6, 2026
4 checks passed
@retr0h
retr0h deleted the ci/no-pull-request-target branch December 6, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-reviewed An independent reviewer checked correctness, bugs and edge cases kind/action kind/agents kind/yaml standards-reviewed An independent reviewer checked this PR against the standards

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant