Skip to content

fix(ci): grant pull-requests: read to the semantic-PR check - #184

Merged
jimisola merged 1 commit into
mainfrom
fix/semantic-pr-permissions
Aug 16, 2026
Merged

fix(ci): grant pull-requests: read to the semantic-PR check#184
jimisola merged 1 commit into
mainfrom
fix/semantic-pr-permissions

Conversation

@jimisola

Copy link
Copy Markdown
Member

ⓘ PR titles have not actually been validated in this repo for some time — this is the second half of the fix.

What & Why

The workflow granted contents: read, but common-check-semantic-pr.yml needs pull-requests: read to inspect the PR title. A callee may not request more than it is granted, so the run is rejected before any job starts.

Two separate bugs stacked here:

  1. The reference pointed at a commit SHA that predated the workflow file (from before the common- rename), so it resolved to nothing. Fixed in the release-flow PR.
  2. Even once it resolved, the permission was wrong. Fixed here.

Between the two, PR-title validation has been silently dead. As always with this failure mode: a startup failure produces no check run, so it never appeared in the checks list.

Found by an org-wide caller/callee permission audit.

Author checklist

  • actionlint clean
  • Conventional Commit title, DCO sign-off

Test Plan

This PR itself exercises it — Check Semantic PR should now run and pass rather than startup-fail. Note the pull_request_target leg reads the workflow from the base branch, so that leg only turns green after merge.

The workflow granted contents: read, but common-check-semantic-pr.yml needs
pull-requests: read to inspect the PR title -- and a callee may not request more
than it is granted, so the run was rejected before any job started.

This is the second half of the fix: the earlier change repointed the reference
from a pinned SHA that predates the file to @main, which resolved the workflow;
this grants it the permission it actually needs. Between the two, PR titles have
not been validated in this repo since the reference broke.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola
jimisola merged commit 11f284a into main Aug 16, 2026
9 checks passed
@jimisola
jimisola deleted the fix/semantic-pr-permissions branch August 16, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant