fix: use FORGEJO_TOKEN instead of REGISTRY_PAT for git auth
ci / test (push) Canceled after 0s
build / build-push (push) Failing after 19s

Forgejo auto-injects GITHUB_TOKEN secret. Use FORGEJO_TOKEN env var
for clarity since we're retiring GitHub.
This commit is contained in:
2026-08-29 22:44:45 -07:00
parent 41bf810de9
commit 62c3f8a1f7
+2 -2
View File
@@ -18,7 +18,7 @@ jobs:
env: env:
GOPRIVATE: forgejo.riotpiao.com GOPRIVATE: forgejo.riotpiao.com
GOFLAGS: -mod=readonly GOFLAGS: -mod=readonly
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }} FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- name: install node (required by JS-based actions) - name: install node (required by JS-based actions)
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git 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 - name: configure git auth for private module fetch
run: | run: |
git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" git config --global url."https://oauth2:${FORGEJO_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
- name: cache go modules + build cache - name: cache go modules + build cache
uses: actions/cache@v4 uses: actions/cache@v4