Skip to content

Commit 7ac4783

Browse files
authored
fix(ci): grant pull-requests: read to the semantic-PR check (#175)
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>
1 parent 3342ac7 commit 7ac4783

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/check-semantic-pr.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
types: [opened, edited, synchronize, reopened]
77

88
permissions:
9-
contents: read
9+
# The callee reads PR metadata to validate the title; contents is not enough,
10+
# and a callee may not request more than it is granted.
11+
pull-requests: read
1012

1113
jobs:
1214
check:

0 commit comments

Comments
 (0)