Skip to content

Commit

Permalink
ci: set explicit permissions for npm-publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 7, 2023
1 parent 488586a commit 6ed3804
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
name: Publish to npm
runs-on: ubuntu-latest
if: contains( github.event.pull_request.labels.*.name, '[ Type ] NPM version update' ) && startsWith( github.head_ref, 'release/') && github.event.pull_request.merged == true
permissions:
contents: read
id-token: write
steps:
- uses: Automattic/vip-actions/[email protected]
with:
Expand Down

0 comments on commit 6ed3804

Please sign in to comment.