Skip to content

ci: run the PR title check on pull_request - #387

Merged
scottlovegrove merged 2 commits into
mainfrom
scottl/semantic-pr-pull-request-trigger
Dec 4, 2026
Merged

scottlovegrove merged 2 commits into
mainfrom
scottl/semantic-pr-pull-request-trigger

Conversation

@scottlovegrove

@scottlovegrove scottlovegrove commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Since 3 December every run of this repo's PR title check has failed at startup ("This run likely failed because of a workflow file issue"). The same workflow file, byte for byte, keeps passing in the private repos that use it (aist-sdk-typescript, product-libraries-tokens), and the only pull_request_target workflows in the org that fail this way are this one and its copies in the other two public repos (comms-cli, todoist-sdk-typescript, twist-cli). Public repos that run the check on pull_request (typist, react-compiler-tracker, todoist-mcp) kept passing on the same action version, so what fails is pull_request_target in a public repo, not the action. Moving the action to Node 24 in #386 didn't change that.

This runs the check on pull_request instead, as typist and the org's other public repos do, and limits its token to pull-requests: read, the only access it needs: the action fetches the pull request to read its current title. Without a permissions block the job got the repository's default write token.

pull_request runs the workflow file from the PR itself, so this PR's own title check exercises the change.

Since 3 December every pull_request_target run of this workflow fails
at startup. The same file passes in private repos, and public repos
that run the check on pull_request keep passing, so the trigger is
what fails in a public repo. The check only reads the PR title, so it
doesn't need pull_request_target's base-branch token.
@scottlovegrove scottlovegrove self-assigned this Dec 4, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR updates ci: run the PR title check on pull_request. No issues were flagged in the reviewed diff.

Share Feedback • Review Logs • Trace

The action fetches the pull request to read its current title, so
pull-requests: read is all it needs. Without a permissions block the
job got the repository's default write token.
@scottlovegrove scottlovegrove added the 🚢 Ship PR requires passing checks before merge, but no independent human review. label Dec 4, 2026
@scottlovegrove
scottlovegrove merged commit 61d0b68 into main Dec 4, 2026
7 checks passed
@scottlovegrove
scottlovegrove deleted the scottl/semantic-pr-pull-request-trigger branch December 4, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚢 Ship PR requires passing checks before merge, but no independent human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants