CI: fetch the Fennec SDK with the job token
Some checks failed
release / release (push) Failing after 1m24s
Some checks failed
release / release (push) Failing after 1m24s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user