From 843e732dcf40c8e460ae9713676d023125ddbce8 Mon Sep 17 00:00:00 2001 From: sync-test Date: Tue, 4 Aug 2026 01:44:52 +0530 Subject: [PATCH] ci: fix secret name for github mirror sync GITHUB_MIRROR_TOKEN was rejected by Forgejo (GITHUB_ prefix is reserved). Renamed to GH_MIRROR_TOKEN and created the secret. Co-Authored-By: Claude Sonnet 5 --- .forgejo/workflows/sync-to-github.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/sync-to-github.yaml b/.forgejo/workflows/sync-to-github.yaml index 4337175..247649b 100644 --- a/.forgejo/workflows/sync-to-github.yaml +++ b/.forgejo/workflows/sync-to-github.yaml @@ -29,9 +29,9 @@ jobs: - name: Push to GitHub env: - GITHUB_MIRROR_TOKEN: ${{ secrets.GITHUB_MIRROR_TOKEN }} + GH_MIRROR_TOKEN: ${{ secrets.GH_MIRROR_TOKEN }} run: | set -euo pipefail - git remote add github-mirror "https://Traceworks2023:${GITHUB_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" 2>/dev/null || \ - git remote set-url github-mirror "https://Traceworks2023:${GITHUB_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" + git remote add github-mirror "https://Traceworks2023:${GH_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" 2>/dev/null || \ + git remote set-url github-mirror "https://Traceworks2023:${GH_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" git push github-mirror "HEAD:main"