From 59db74dd59102f3b18574763de04b666b3154a93 Mon Sep 17 00:00:00 2001 From: rock Date: Sat, 29 Aug 2026 22:47:16 -0700 Subject: [PATCH] fix: use GITHUB_TOKEN (Forgejo auto-injected secret) --- .gitea/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8ea4148..71b1e63 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: env: GOPRIVATE: forgejo.riotpiao.com GOFLAGS: -mod=readonly - FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: install node (required by JS-based actions) run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git @@ -27,7 +27,7 @@ jobs: - name: configure git auth for private module fetch run: | - git config --global url."https://oauth2:${FORGEJO_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" + git config --global url."https://oauth2:${GITHUB_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" - name: cache go modules + build cache uses: actions/cache@v4