Skip to content

Commit

Permalink
fix: add permission for id-token (IBM#295)
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Patel <[email protected]>
Signed-off-by: Max You <[email protected]>
  • Loading branch information
Akshat55 authored and jz5426 committed Feb 1, 2024
1 parent ea419ca commit 6eeac0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Give permission to mint ID token for provenance
permissions:
id-token: write
contents: write
actions: read

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -63,7 +68,7 @@ jobs:

# 1. Itereates through the list of libs in dist directory
# 2. Packs the build
# 3. Publishes the build - npm publish --provenance --access public
# 3. Publishes the build
- name: Publish to NPM
run: |
cd dist/libs
Expand Down

0 comments on commit 6eeac0a

Please sign in to comment.