Allow extended write permissions for Dependabot auto-merge (#3945)

This commit is contained in:
Jon Koops 2022-12-06 13:50:45 +01:00 committed by GitHub
parent 07f5e070e0
commit 49ed77b85c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,6 @@ concurrency:
# See: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value # See: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
group: main-${{ github.head_ref || github.run_id }} group: main-${{ github.head_ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions:
pull-requests: write
env: env:
NODE_VERSION: 18 NODE_VERSION: 18
jobs: jobs:
@ -83,6 +81,7 @@ jobs:
dependabot: dependabot:
needs: [run] needs: [run]
permissions: write-all
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
steps: steps: