Skip to content

Commit

Permalink
👷 Add permissions to NPM publish with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed Sep 18, 2024
1 parent adbbd8e commit 64502c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/covector-version-or-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main

permissions:
contents: write
actions: write
pull-requests: write

jobs:
version-or-publish:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- "interactors-*"

permissions:
id-token: write
contents: read


jobs:
publish-to-npm:
name: NPM ${{ github.ref }}
Expand Down

0 comments on commit 64502c5

Please sign in to comment.