Commit a60f3a8
committed
fix(uniffi): drop unneeded contents:write permission on workflow jobs
The CodeQL autofix landed in #1078 added `permissions: contents: read`
at the top level of uniffi-packages.yml, which then forbids any
nested job (including the called workflow uniffi-swift.yml) from
requesting higher permissions — workflow validation fails with:
Error calling workflow ... The nested job 'build-and-publish' is
requesting 'contents: write', but is only allowed 'contents: read'.
Neither job actually needs write: `gh release list` in resolve-tag is
read-only, and the publish step authenticates to the hosting repo
with UNIFFI_XCFRAMEWORK_PAT (not GITHUB_TOKEN). Drop the elevation
on both so the workflow can start.1 parent 186a122 commit a60f3a8
2 files changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments