Change workflow dispatch permissions (#11812)

It seems that content: write is needed so that external contributors can
dispatch workflows
This commit is contained in:
Félix Malfait
2025-04-30 13:06:57 +02:00
committed by GitHub
parent 6343eaeb4f
commit e55ff5ac4a

View File

@ -12,8 +12,9 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
contents: write
actions: write
pull-requests: read
jobs:
changed-files-check:
@ -39,4 +40,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
event-type: preview-environment
client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'
client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'