Skip to content

Commit 1c02295

Browse files
authored
ci(publish): grant write permission for id-token (#930)
For publish workflow: - grant write permission for id-token - do not run "Show publish summary" step when publishing with dry run flag
1 parent c0f41f2 commit 1c02295

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
type: boolean
2727
default: true
2828

29+
permissions:
30+
contents: read
31+
id-token: write # Required for OIDC
32+
2933
jobs:
3034
publish:
3135
name: Publish
@@ -65,5 +69,6 @@ jobs:
6569
NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
6670
NPM_CONFIG_PROVENANCE: true
6771

68-
- name: Show publish report
72+
- name: Show publish summary
73+
if: ${{ github.event.inputs.dry_run == 'false' }}
6974
run: cat pnpm-publish-summary.json

0 commit comments

Comments
 (0)