Skip to content

Commit

Permalink
ci: add 'attestations: write' for the 'publish' job
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Jun 5, 2024
1 parent fd99475 commit 5234586
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:
workflow_dispatch:

permissions:
attestations: write # to generate artifact attestations for dist assets
contents: write # to checkout the code and create a release
id-token: write # to publish to npm
id-token: write # to publish to npm using OIDC
pull-requests: write # to add coverage reports to a PR
statuses: write # to update commit status

Expand Down Expand Up @@ -55,8 +56,9 @@ jobs:
if: needs.release.outputs.new_release_published == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
attestations: write # to generate artifact attestations for dist assets
contents: read # to checkout the code
id-token: write # to publish to npm using OIDC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down

0 comments on commit 5234586

Please sign in to comment.