From d38298c96d0717984f47d7fc6d3879621b57d046 Mon Sep 17 00:00:00 2001 From: Tamas Csikel Date: Sun, 25 Oct 2026 17:59:34 +0100 Subject: [PATCH] CI: fetch the Fennec SDK with the job token Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 882b6dd..90f86d0 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,6 +19,7 @@ jobs: container: image: docker.gitea.com/runner-images:ubuntu-latest env: + CARGO_NET_GIT_FETCH_WITH_CLI: "true" W: /tmp/fennec-steam CARGO_HOME: /tmp/fennec-steam/cargo RUSTUP_HOME: /tmp/fennec-steam/rustup @@ -29,6 +30,9 @@ jobs: - name: Checkout run: | mkdir -p "$W" + # The Fennec SDK through cargo, with this job's token (works while + # the Gitea needs a login to read). + git config --global "http.${GITHUB_SERVER_URL}/fennec/sdk.extraHeader" "Authorization: token ${{ secrets.GITHUB_TOKEN }}" git clone --depth 1 --branch main \ "${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" "$W/src" export DEBIAN_FRONTEND=noninteractive