Skip to content

chore(ci): drop pull_request_target workflows - #119

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

retr0h merged 1 commit into
mainfrom
ci/no-pull-request-target

Conversation

@retr0h

@retr0h retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Specs: osapi-io/specs#766

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 failed at startup and sent a failure email.

  • Labeler: pull_request_target becomes pull_request. Each pull request comes from a branch of this repository, so the token can write labels.
  • Greetings: deleted. It welcomes first-time contributors, and the organization has none.

The Labeler check of this pull request is the test of the change.

🤖 Generated with Claude Code

@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 labels Dec 6, 2026
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Code review: changes requested (head 9b3054e). 1 finding.

  1. .github/workflows/labeler.yml:4 still has - pull_request_target. The pull request deletes only greetings.yml, but the description says that the Labeler trigger becomes pull_request. After the merge, each Labeler run of this repository still fails at startup. The Labeler run of this head shows it: event pull_request_target, conclusion startup_failure, and no pull_request Labeler run exists. Fix: change line 4 to - pull_request, as specs#766 does. Then the Labeler check of the pull request runs from the head and is the test of the change.

Checked: the diff, the workflow list on the head, the Labeler and Greetings runs of the head, and a search of the head for pull_request_target, greetings and first-interaction. The deletion of greetings.yml is correct, and nothing else refers to it.

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

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: changes requested (head 9b3054e)

  1. .github/workflows/labeler.yml:4 (not in the diff): the trigger is still pull_request_target. The pull request deletes only greetings.yml. Its title, its commit body ("The labeler runs on pull_request") and its description say that the labeler moves to pull_request, and ci: drop pull_request_target workflows specs#766 makes that change in specs. Rules: specs AGENTS.md, Make a change, "Change a shared convention in each repository at the same time" (each .github/ directory has the same configuration files); specs CONTRIBUTING.md, Branches and commits ("Tell what changed and why in the description"), which the description does not do for this file. Fix: change line 4 to - pull_request, as in specs#766.
  2. Title and commit subject ci: drop pull_request_target workflows: ci is not one of the permitted types. Rule: CONTRIBUTING.md, Commit messages, Types (feat, fix, docs, style, refactor, perf, test, chore). Fix: chore(ci): drop pull_request_target workflows (45 characters) for the commit subject and the pull request title. The squash merge makes the title the subject.

Checked and correct: Specs: link, body wrap at 72, no backward-compatibility code, no em dash or "MUST" in changed text, no value of a real host.

@retr0h retr0h removed the needs-standards-review The author asks for the independent standards review label Dec 6, 2026
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 changed the title ci: drop pull_request_target workflows chore(ci): drop pull_request_target workflows Dec 6, 2026
@retr0h
retr0h force-pushed the ci/no-pull-request-target branch from 9b3054e to 7313048 Compare December 6, 2026 04:08
@retr0h

retr0h commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in 7313048: labeler.yml line 4 is now - pull_request (the edit was not staged before). The title and the commit subject use chore(ci):, as the Commit messages section of CONTRIBUTING.md requires.

@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 7313048). Checked: labeler.yml now runs on pull_request and greetings.yml is deleted, the same as specs#766 (specs AGENTS.md, Make a change, shared convention); title and subject use chore(ci) at 45 characters, body wrapped at 72 (CONTRIBUTING.md, Commit messages); Specs: link present (specs AGENTS.md, Open a pull request); no backward-compatibility code; no em dash or MUST; 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 7313048). 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.

@retr0h
retr0h merged commit 908f48d into main Dec 6, 2026
6 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/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