ci: authenticate tramiton fetch via extraheader (actions/checkout form)
CI / Check (pull_request) Failing after 1m30s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped

The placeholder-username URL form returned "Repository not found". Switch to the
canonical http.extraheader Basic-auth used by actions/checkout
(x-access-token:<token>) to remove the username variable. Definitive test of
whether the Collaborative Owner grant covers a cargo git-dep clone.

Refs #118.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-07-10 16:08:12 +02:00
co-authored by Claude Fable 5
parent 1d346324c5
commit 03e39a883d
+10 -8
View File
@@ -50,17 +50,19 @@ jobs:
RUSTC_WRAPPER: ""
# compliance-agent has a git dependency on tramiton-core (a private repo on
# this Gitea instance). Rewrite its SSH URL to HTTPS + the ephemeral Actions
# token so the runner can fetch it — no PAT needed. This works because
# sharang/tramiton lists sharang as a Collaborative Owner (tramiton →
# Settings → Actions), which lets this repo's Actions read tramiton.
# this Gitea instance). Rewrite its SSH URL to HTTPS and authenticate with
# the ephemeral Actions token using the same Basic-auth extraheader form
# that actions/checkout uses (username `x-access-token`) — no PAT needed,
# provided sharang/tramiton grants this repo access via Collaborative Owners
# (tramiton → Settings → Actions).
- name: Configure git auth for private tramiton dependency
run: |
git config --global \
url."https://gitea-actions:${{ github.token }}@gitea.meghsakha.com/".insteadOf \
"ssh://git@gitea.meghsakha.com:22222/"
env:
GITEA_ACTIONS_TOKEN: ${{ github.token }}
RUSTC_WRAPPER: ""
run: |
AUTH=$(printf 'x-access-token:%s' "$GITEA_ACTIONS_TOKEN" | base64 -w0)
git config --global http."https://gitea.meghsakha.com/".extraheader "Authorization: Basic $AUTH"
git config --global url."https://gitea.meghsakha.com/".insteadOf "ssh://git@gitea.meghsakha.com:22222/"
# Format (no compilation needed)
- name: Format