Skip to content

Commit 2074dfc

Browse files
committed
fix(ci): propagate id-token: write to publish job in release.yml
release.yml calls publish.yml via workflow_call with only `contents: read` permission. Without `id-token: write` at the caller job level, the OIDC env vars (ACTIONS_ID_TOKEN_REQUEST_URL/TOKEN) are not available inside the reusable workflow — so npm publish falls through to 'requires you to be logged in', even though publish.yml itself declares id-token: write. Direct workflow_dispatch of publish.yml worked (no caller job to filter permissions); release.yml -> publish.yml did not.
1 parent 0173f38 commit 2074dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
version: ${{ needs.release.outputs.tag }}
118118
permissions:
119119
contents: read
120-
id-token: write
120+
id-token: write # needed for npm OIDC trusted publishing
121121

122122
publish-gpr:
123123
name: Publish packages to GitHub Packages

0 commit comments

Comments
 (0)