Commit 992ea1a
fix(ci): resolve nightly workflow permission error (#230)
The nightly workflow was failing validation because test.yml declared
`checks: write` at the workflow level. When a reusable workflow declares
permissions, the caller must grant them. Scheduled runs have limited
permissions and cannot grant `checks: write`, causing validation to fail
before any code runs.
Changes:
- Remove `permissions` block from test.yml so it inherits from caller
- Add `checks: write` to nightly.yml (granted for manual runs, ignored
for scheduled runs which have limited permissions)
- Add workflow_dispatch input to optionally enable coverage annotation
- Make skip_coverage_annotation dynamic: always true for scheduled runs,
configurable for manual runs
---------
Co-authored-by: Claude <[email protected]>1 parent cf85abe commit 992ea1a
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
| |||
0 commit comments