Skip to content

Commit

Permalink
Explicitly declare workflow permissions for previews (#2137)
Browse files Browse the repository at this point in the history
* explicitly declare workflow permissions for previews
  • Loading branch information
rezrah authored Jun 21, 2022
1 parent 65fcd9f commit df26f3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
if: ${{ github.repository == 'primer/react' }}
name: Preview
uses: primer/.github/.github/workflows/deploy_preview.yml@main
permissions:
contents: read
pages: write
id-token: write
with:
node_version: 14
install: npm ci && cd docs && npm ci && cd ..
Expand Down

0 comments on commit df26f3c

Please sign in to comment.