fix: use GITHUB_TOKEN (Forgejo auto-injected secret)
ci / test (push) Canceled after 0s
build / build-push (push) Failing after 18s

This commit is contained in:
2026-08-29 22:47:16 -07:00
parent 7aaf30843e
commit 59db74dd59
+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
FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_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:${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 - name: cache go modules + build cache
uses: actions/cache@v4 uses: actions/cache@v4