ci: fetch private tramiton dep via ephemeral Actions token, not a PAT
CI / Check (pull_request) Failing after 1m27s
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

sharang/tramiton lists sharang as a Collaborative Owner (tramiton → Settings →
Actions), so this repo's Actions can read tramiton. Use ${{ github.token }} in
the git credential rewrite instead of a TRAMITON_FETCH_TOKEN PAT — no secret to
manage. If cargo's git fetch 403s (feature scoped to uses:-actions only), fall
back to a PAT.

Refs #118.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-07-10 16:01:20 +02:00
co-authored by Claude Fable 5
parent 43a1900850
commit 1d346324c5
+5 -4
View File
@@ -50,13 +50,14 @@ jobs:
RUSTC_WRAPPER: "" RUSTC_WRAPPER: ""
# compliance-agent has a git dependency on tramiton-core (a private repo on # compliance-agent has a git dependency on tramiton-core (a private repo on
# this Gitea instance). Rewrite its SSH URL to HTTPS + a read token so the # this Gitea instance). Rewrite its SSH URL to HTTPS + the ephemeral Actions
# runner can fetch it. Requires a repo secret TRAMITON_FETCH_TOKEN — a # token so the runner can fetch it — no PAT needed. This works because
# Gitea PAT for a user with read access to sharang/tramiton. # sharang/tramiton lists sharang as a Collaborative Owner (tramiton
# Settings → Actions), which lets this repo's Actions read tramiton.
- name: Configure git auth for private tramiton dependency - name: Configure git auth for private tramiton dependency
run: | run: |
git config --global \ git config --global \
url."https://sharang:${{ secrets.TRAMITON_FETCH_TOKEN }}@gitea.meghsakha.com/".insteadOf \ url."https://gitea-actions:${{ github.token }}@gitea.meghsakha.com/".insteadOf \
"ssh://git@gitea.meghsakha.com:22222/" "ssh://git@gitea.meghsakha.com:22222/"
env: env:
RUSTC_WRAPPER: "" RUSTC_WRAPPER: ""