ci: authenticated checkout via injected token
Some checks failed
CI / check (push) Failing after 29s

Anonymous HTTPS clone fails while the repo is private; token works either
way, and the internal gitea:3000 host skips the reverse proxy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
marcuspaico
2026-08-17 14:45:07 -07:00
parent 057d647423
commit 9b2cb6a853

View File

@@ -11,7 +11,9 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
apt-get update -qq && apt-get install -y -qq git >/dev/null apt-get update -qq && apt-get install -y -qq git >/dev/null
git init -q . && git fetch -q --depth 1 "https://git.rehbock.xyz/${{ github.repository }}.git" "${{ github.sha }}" && git checkout -q FETCH_HEAD # Token-authenticated fetch so CI works on private repos too; internal
# gitea:3000 host avoids the proxy round-trip.
git init -q . && git fetch -q --depth 1 "http://x:${{ secrets.GITHUB_TOKEN }}@gitea:3000/${{ github.repository }}.git" "${{ github.sha }}" && git checkout -q FETCH_HEAD
- run: bun install --frozen-lockfile - run: bun install --frozen-lockfile
- run: bun run typecheck - run: bun run typecheck
- run: bun run build:web - run: bun run build:web