Skip to content

Commit fd0b68b

Browse files
committed
fix(ci): use DEMO_DISPATCH_TOKEN for cross-repo demo dispatch
Replace GITHUB_TOKEN with DEMO_DISPATCH_TOKEN in both dispatch jobs (dispatch-demo-deployment and dispatch-demo-canary). The default GITHUB_TOKEN lacks permission to dispatch to the external SiriusScan/sirius-demo repository, causing HTTP 403 on every run. Made-with: Cursor
1 parent 5cdd92e commit fd0b68b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ jobs:
856856
- name: Dispatch to sirius-demo repository
857857
uses: peter-evans/repository-dispatch@v3
858858
with:
859-
token: ${{ secrets.GITHUB_TOKEN }}
859+
token: ${{ secrets.DEMO_DISPATCH_TOKEN }}
860860
repository: SiriusScan/sirius-demo
861861
event-type: sirius-demo-updated
862862
client-payload: |
@@ -888,7 +888,7 @@ jobs:
888888
steps:
889889
- name: Dispatch to sirius-demo repository (canary trigger)
890890
env:
891-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
891+
GH_TOKEN: ${{ secrets.DEMO_DISPATCH_TOKEN }}
892892
COMMIT_MSG: ${{ github.event.head_commit.message }}
893893
run: |
894894
# Sanitize: take first line only and strip characters that break JSON

0 commit comments

Comments
 (0)