Skip to content

Commit 05c11c4

Browse files
authored
Add OpenID permissions in publish workflow (#297)
1 parent 1683f2c commit 05c11c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-or-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '.github/**'
1010

1111
permissions:
12+
id-token: write
1213
contents: write
1314
packages: write
1415

@@ -63,6 +64,7 @@ jobs:
6364
needs: detect-bump
6465
if: needs.detect-bump.outputs.is_bump == 'true' && github.ref == 'refs/heads/master'
6566
permissions:
67+
id-token: write
6668
contents: write
6769
packages: write
6870
steps:
@@ -117,8 +119,6 @@ jobs:
117119
scope: '@celonis'
118120

119121
- name: Publish to NPM Registry
120-
env:
121-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
122122
run: |
123123
cd dist/
124124
npm publish --access public

0 commit comments

Comments
 (0)