Fix the preview page deployment: require write access for the action

This commit is contained in:
Arseniy Zaostrovnykh 2023-06-14 12:16:57 +02:00 committed by GitHub
parent 2a6106862e
commit 5d36aa982f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
permissions:
pull-requests: read # Get the list and metadata of open new-rule PRs
contents: read # Get the contents of each open new-rule PR, and the 'master'
contents: write # Get the contents of open new-rule PRs, the 'master'; write to 'gh-pages' branch
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.