From 33d0be50be6516559c01347692edd80b638a862c Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 9 Oct 2023 20:47:06 +0800 Subject: [PATCH] Fix snapshot release permissions (#8777) --- .github/workflows/snapshot-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index 8fce35f42..ad3968e21 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -20,9 +20,10 @@ jobs: if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!preview') }} runs-on: ubuntu-latest permissions: - contents: read - id-token: write - issues: write + contents: read + id-token: write + issues: write + pull-requests: write steps: - name: "Check if user has admin access (only admins can publish snapshot releases)." uses: "lannonbr/repo-permission-check-action@2.0.0"