From 32b2d9eb5ad41b078a3f3c09d8a58d6a74ec4956 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Tue, 8 Oct 2024 16:52:20 -0400 Subject: [PATCH] Update permission to write commit statuses. --- .github/workflows/deploy-github-pages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 1936006..8b6d447 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -5,7 +5,9 @@ on: branches: - 'main' # WARNING: This allows storybook-branch-switcher CLI to run `npm run ${arbitrary_script}` - # BUT the worst it can do is force changes to our GitHub Pages website, + # BUT the worst it can do is: + # - force changes to our GitHub Pages website, + # - force commit status updates, # unless the permissions key below is changed. pull_request_target: types: [opened, synchronize, reopened] @@ -15,6 +17,7 @@ permissions: contents: read pages: write id-token: write + statuses: write jobs: deploy: