From 945f8974d4f30cce6d796e6d1b384b5d3ca0c751 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Thu, 13 Aug 2026 12:23:13 +0800 Subject: [PATCH] fix(ci): inject token for staging deploy dispatch --- .gitea/workflows/backend-quality-gate.yml | 1 + frontend/tests/staging-backend-workflows.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index ab1c0ba5..a9343b0c 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -233,6 +233,7 @@ jobs: env: GITEA_SHA: ${{ gitea.sha }} GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha steps: diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index 02899a95..d6403f07 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -606,6 +606,7 @@ test("Gitea staging deployment is dispatched from staging after the exact push g assert.match(workflow, /WEB_IMAGE: \$\{\{ steps\.images\.outputs\.web_image \}\}/); assert.match(quality, /Dispatch exact-SHA staging deployment/); + assert.match(quality, /GITEA_TOKEN: \$\{\{ secrets\.GITEA_TOKEN \}\}/); assert.match(quality, /staging advanced before deployment dispatch; refusing stale release/); assert.match(quality, /actions\/workflows\/deploy-staging\.yml\/dispatches\?return_run_details=true/); assert.match(quality, /--arg ref "refs\/heads\/staging"/);