Skip to content

Commit d090ff2

Browse files
committed
fix(ci): grant security-events: write to the Hypatia caller
Refreshing hypatia-scan-reusable.yml to standards HEAD turned the run into a startup_failure — zero jobs, no log. The newer reusable declares permissions: contents: read security-events: write because it uploads SARIF, while the caller granted security-events: read. A called workflow cannot escalate beyond its caller's grant, so GitHub rejects the whole run at parse time rather than failing a job. This is the failure mode where refreshing a pin BREAKS a caller that was previously fine: the old pin needed only read. Checked the other two bumped reusables the same way — governance-reusable and scorecard-reusable both declare only contents: read, which the callers already grant, so no change was needed there.
1 parent 2369299 commit d090ff2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ on:
1212

1313
permissions:
1414
contents: read
15-
security-events: read
15+
# The reusable declares security-events: write (it uploads SARIF). A called
16+
# workflow cannot escalate beyond the caller's grant, so `read` here makes the
17+
# whole run a startup_failure with zero jobs and no log.
18+
security-events: write
1619

1720
jobs:
1821
scan:

0 commit comments

Comments
 (0)