Skip to content

Commit b52132a

Browse files
authored
chore: add write permission for publish-npm (#249)
1 parent 261cd55 commit b52132a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ on:
4141
- npm
4242
- extension
4343
permissions:
44-
# Provenance generation in GitHub Actions requires "write" access to the "id-token"
45-
id-token: write
4644
contents: read
4745
env:
4846
GO_VERSION: '1.24.1'
@@ -54,6 +52,11 @@ jobs:
5452
needs: [build]
5553
runs-on: ubuntu-22.04
5654
environment: npm
55+
permissions:
56+
# For push git tags
57+
contents: write
58+
# For Trusted Publish
59+
id-token: write
5760
steps:
5861
- name: Show dry-run status
5962
run: |

0 commit comments

Comments
 (0)