diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 20edc18..69932d2 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -29,7 +29,11 @@ jobs: steps: - name: Checkout run: | - git clone --no-checkout "https://x-access-token:${GITHUB_TOKEN}@git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src + # Public repo — clone without auth. Both Gitea and Forgejo + # rejected hardcoded "forgejo-runner"/"x-access-token" basic-auth + # formulas; for an unauthenticated read on public repos plain + # https works on every server. + git clone --no-checkout "https://git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src git -C /tmp/src checkout "$GITHUB_SHA" cp -a /tmp/src/. . - name: Vet @@ -48,7 +52,11 @@ jobs: steps: - name: Checkout run: | - git clone --no-checkout "https://x-access-token:${GITHUB_TOKEN}@git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src + # Public repo — clone without auth. Both Gitea and Forgejo + # rejected hardcoded "forgejo-runner"/"x-access-token" basic-auth + # formulas; for an unauthenticated read on public repos plain + # https works on every server. + git clone --no-checkout "https://git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src git -C /tmp/src checkout "$GITHUB_SHA" cp -a /tmp/src/. . - name: Cross-compile drover.exe (windows/amd64) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f77e6c8..e335308 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -18,7 +18,8 @@ jobs: steps: - name: Checkout run: | - git clone --no-checkout "https://x-access-token:${GITHUB_TOKEN}@git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src + # Public repo — clone without auth (see build.yml for rationale). + git clone --no-checkout "https://git.okcu.io/${GITHUB_REPOSITORY}.git" /tmp/src git -C /tmp/src checkout "$GITHUB_SHA" cp -a /tmp/src/. .