From df26f3c3aac7cdb5f37f956e2f950522e7bdc732 Mon Sep 17 00:00:00 2001 From: Rez Date: Tue, 21 Jun 2022 23:41:11 +0100 Subject: [PATCH] Explicitly declare workflow permissions for previews (#2137) * explicitly declare workflow permissions for previews --- .github/workflows/deploy_preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 71b12de29a5..4cc167fd2dd 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -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 ..