CI: fetch the Fennec SDK with the job token
Some checks failed
release / release (push) Failing after 1m24s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-25 17:59:34 +01:00
parent 460da31b8b
commit d38298c96d

View File

@@ -19,6 +19,7 @@ jobs:
container: container:
image: docker.gitea.com/runner-images:ubuntu-latest image: docker.gitea.com/runner-images:ubuntu-latest
env: env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
W: /tmp/fennec-steam W: /tmp/fennec-steam
CARGO_HOME: /tmp/fennec-steam/cargo CARGO_HOME: /tmp/fennec-steam/cargo
RUSTUP_HOME: /tmp/fennec-steam/rustup RUSTUP_HOME: /tmp/fennec-steam/rustup
@@ -29,6 +30,9 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
mkdir -p "$W" 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 \ git clone --depth 1 --branch main \
"${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" "$W/src" "${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" "$W/src"
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive