diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 5030117561c..23972db77e6 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -6,10 +6,14 @@ on: permissions: contents: read - pull-requests: write jobs: publish-preview: + # Job permissions replace the workflow set. The shared workflow still + # needs pull-requests: write to comment, and contents: read to check out. + permissions: + contents: read + pull-requests: write if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '@metamaskbot publish-preview') }} uses: MetaMask/github-tools/.github/workflows/publish-preview.yml@v1 with: