add permissions for surge preview to comment

This commit is contained in:
Ell 2024-02-04 14:23:10 +01:00
parent dc9ad7939a
commit c3d80716a9

View file

@ -5,6 +5,8 @@ on:
jobs: jobs:
web: web:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
pull-requests: write # allow surge-preview to create/update PR comments
env: env:
BUNDLE_GEMFILE: ${{ github.workspace }}/web/Gemfile BUNDLE_GEMFILE: ${{ github.workspace }}/web/Gemfile
steps: steps:
@ -40,6 +42,8 @@ jobs:
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
pull-requests: write # allow surge-preview to create/update PR comments
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v4 uses: actions/checkout@v4