Skip to content

Commit 05f90fc

Browse files
authored
Fix release: also set permission: id-token: write in this repo, not just in the reusable workflow (#727)
Got the error The workflow is not valid. Error calling workflow. The workflow is requesting 'id-token: write', but is only allowed 'id-token: none'. Signed-off-by: HARPER Jon <[email protected]>
1 parent 4f957f6 commit 05f90fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818

1919
permissions:
2020
contents: write
21+
# permission for npm error Provenance generation in GitHub Actions requires "write" access to the "id-token" permission
22+
# permission must be reset here otherwise we get the following error:
23+
# > The workflow is not valid. Error calling workflow. The workflow is requesting # 'id-token: write', but is only allowed 'id-token: none'.
24+
id-token: write
2125

2226
jobs:
2327
run-release:

0 commit comments

Comments
 (0)