Skip to content

The open alternative to Salesforce, designed for AI.

fix(ci): repair preview-environment dispatch (use PAT, not GITHUB_TOKEN) (#20773)

Félix Malfaitc002bc52bd19
diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml
index 065a37cfe04..d7554b31ae1 100644
--- a/.github/workflows/preview-env-dispatch.yaml
+++ b/.github/workflows/preview-env-dispatch.yaml
@@ -37,7 +37,7 @@ jobs:
steps:
- name: Trigger preview environment workflow
env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_TOKEN: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
REPOSITORY: ${{ github.repository }}