Skip to content

The open alternative to Salesforce, designed for AI.

Change workflow dispatch permissions (#11812)

Félix Malfaite55ff5ac4a97
diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml
index 0316729e8e4..c6c6ac47434 100644
--- a/.github/workflows/preview-env-dispatch.yaml
+++ b/.github/workflows/preview-env-dispatch.yaml
@@ -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 }}"}'
\ No newline at end of file
+ client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'