From 0ff70840a9c2ae23dc0fc76028a9d02496c37834 Mon Sep 17 00:00:00 2001 From: loong10k <20489781+loong10k@users.noreply.github.com> Date: Mon, 21 Sep 2026 20:59:29 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=8C=89=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E9=80=89=E7=94=A8=E5=90=8C=E6=AD=A5=E4=BB=A4?= =?UTF-8?q?=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 分发工作流改为 secrets.FULL_STACK_SKILLS_SYNC_TOKEN || secrets.SKILLS_SYNC_TOKEN: 优先使用按组织签发的令牌,未配置时回退到旧令牌。 守卫与状态提示同步改为指向实际读取的令牌名。 --- .github/workflows/dispatch-plugin-sync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch-plugin-sync.yml b/.github/workflows/dispatch-plugin-sync.yml index 7570479..d9f1f90 100644 --- a/.github/workflows/dispatch-plugin-sync.yml +++ b/.github/workflows/dispatch-plugin-sync.yml @@ -20,7 +20,7 @@ jobs: permissions: contents: read env: - GH_TOKEN: ${{ secrets.SKILLS_SYNC_TOKEN }} + GH_TOKEN: ${{ secrets.FULL_STACK_SKILLS_SYNC_TOKEN || secrets.SKILLS_SYNC_TOKEN }} RELEASE_REF: ${{ github.event.release.tag_name || inputs.ref }} REQUESTED_SHA: ${{ inputs.sha }} steps: @@ -34,7 +34,7 @@ jobs: shell: bash run: | if [[ -z "$GH_TOKEN" ]]; then - echo "::error::SKILLS_SYNC_TOKEN is required. Use a fine-grained token with Contents: write on full-stack-plugins/codeguard-plugin." + echo "::error::FULL_STACK_SKILLS_SYNC_TOKEN is required. Use a fine-grained token with Contents: write on full-stack-plugins/codeguard-plugin." exit 1 fi if [[ ! "$RELEASE_REF" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then