From 6bf62572ee8e0226eca58b6933a71d9d1850499e Mon Sep 17 00:00:00 2001 From: Eric Zhu Date: Thu, 25 Jan 2024 08:54:21 -0800 Subject: [PATCH] Fix permission block for deploy-website.yml (#1397) Based on the instruction here: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-first-deployment-with-github_token Write permission is needed to publish GitHub page content to the gh-pages branch. --- .github/workflows/deploy-website.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 9ca44150eed..ccc6e4b219b 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -17,11 +17,7 @@ on: merge_group: types: [checks_requested] permissions: - pages: write - # actions: read - # checks: read - # contents: read - # deployments: read + contents: write jobs: checks: if: github.event_name != 'push'