fix: use consistent secret name for git auth in CI workflows
ci / test (push) Failing after 3m29s

This commit is contained in:
2026-08-28 16:45:26 -07:00
parent 8cc884a5ab
commit ea4e5c6ece
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ jobs:
env: env:
GOPRIVATE: forgejo.riotpiao.com GOPRIVATE: forgejo.riotpiao.com
GOFLAGS: -mod=readonly GOFLAGS: -mod=readonly
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }} REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
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
@@ -22,7 +22,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:${GITHUB_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"
- name: cache go modules + build cache - name: cache go modules + build cache
uses: actions/cache@v4 uses: actions/cache@v4
+2 -2
View File
@@ -12,7 +12,7 @@ jobs:
image: golang:1.26 image: golang:1.26
env: env:
GOPRIVATE: forgejo.riotpiao.com GOPRIVATE: forgejo.riotpiao.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REGISTRY_PAT: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- name: install node + git (required by JS-based actions) - name: install node + git (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
@@ -21,7 +21,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:${GITHUB_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"
- name: build cross-platform binaries - name: build cross-platform binaries
run: | run: |