Repository navigation
Commit e302c92
committed
fix: let the scorecard workflow be triggered, and record why it never ran
From the day it was added until today this workflow never ran once: four
startup_failure results with no job, no log, and the message "This run likely
failed because of a workflow file issue".
The file was not the issue. actionlint passed it, all three pinned commits
resolved, and three stripped-down copies on a throwaway branch failed
identically, including one that was nothing but a checkout and the action. The
cause was the repository's Actions policy: allowed_actions was 'selected' with
GitHub-owned actions and two setup-* patterns permitted, and
ossf/scorecard-action is neither GitHub-owned nor was it listed, so the run was
refused before a job existed. Every other action in this tree lives under
actions/ or github/, which is why nothing else ever hit it. The allow-list has
since been corrected.
Two changes here. workflow_dispatch, because a run that ends in startup_failure
cannot be re-run and the only other triggers were a push to main and a weekly
schedule, so every attempt to diagnose this cost a commit on the default branch;
a workflow that cannot be triggered on demand is a workflow that cannot be
tested, which is how it stayed broken. And the diagnosis itself, in a comment at
the top, because the next action added from a new owner will hit the same wall
and the message GitHub gives points at the wrong file.
Signed-off-by: Ayla Croft <aylacroft@proton.me>1 parent 9780c3e commit e302c92
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
| |||
0 commit comments