From 46bae7db1c90fda2c12316a31dd4fb8333ad1698 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Thu, 21 May 2026 11:41:11 -0700 Subject: [PATCH] fix(ci): rename GITHUB_MIRROR_TOKEN secret to GH_MIRROR_TOKEN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgejo reserves the GITHUB_* prefix for secret names — creating a secret called GITHUB_MIRROR_TOKEN returns 'invalid secret name'. Also rename the GITHUB_TOKEN step env var to GH_MIRROR_PAT to avoid collision with the built-in Forgejo Actions context variable. --- .forgejo/workflows/mirror.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/mirror.yml b/.forgejo/workflows/mirror.yml index 83d273d..5b1f887 100644 --- a/.forgejo/workflows/mirror.yml +++ b/.forgejo/workflows/mirror.yml @@ -1,6 +1,7 @@ # Mirror push to GitHub and Codeberg on every push to main or tag. # Copied from Circuit-Forge/cf-agents workflows/mirror.yml -# Required secrets: GITHUB_MIRROR_TOKEN, CODEBERG_MIRROR_TOKEN +# Required secrets: GH_MIRROR_TOKEN, CODEBERG_MIRROR_TOKEN +# Note: Forgejo reserves the GITHUB_* prefix for secret names — use GH_* instead. name: Mirror @@ -19,10 +20,10 @@ jobs: - name: Mirror to GitHub env: - GITHUB_TOKEN: ${{ secrets.GITHUB_MIRROR_TOKEN }} + GH_MIRROR_PAT: ${{ secrets.GH_MIRROR_TOKEN }} REPO: ${{ github.event.repository.name }} run: | - git remote add github "https://x-access-token:${GITHUB_TOKEN}@github.com/CircuitForgeLLC/${REPO}.git" + git remote add github "https://x-access-token:${GH_MIRROR_PAT}@github.com/CircuitForgeLLC/${REPO}.git" git push github --mirror - name: Mirror to Codeberg