fix: use REGISTRY_PAT secret for git auth (exists on all repos)
ci / test (push) Failing after 46s

This commit is contained in:
2026-08-29 22:53:24 -07:00
parent 72533b8f32
commit f2b1a4bbb1
+3 -3
View File
@@ -17,7 +17,7 @@ jobs:
env:
GOPRIVATE: forgejo.riotpiao.com
GOFLAGS: -mod=readonly
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
steps:
# actions/checkout is a Node-based action; golang:1.25 has no node on PATH.
- name: install node (required by JS-based actions)
@@ -29,9 +29,9 @@ jobs:
# GITHUB_TOKEN is auto-injected by Forgejo Actions and has read access to all repos.
- name: configure git auth for private module fetch
run: |
git config --global url."https://oauth2:${GIT_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
- name: cache go modules + build cache
uses: actions/cache@v4