Change workflow dispatch permissions (#11812)
It seems that content: write is needed so that external contributors can dispatch workflows
This commit is contained in:
5
.github/workflows/preview-env-dispatch.yaml
vendored
5
.github/workflows/preview-env-dispatch.yaml
vendored
@ -12,8 +12,9 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
actions: write
|
actions: write
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changed-files-check:
|
changed-files-check:
|
||||||
@ -39,4 +40,4 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
event-type: preview-environment
|
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 }}"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user