feat: add gitdan-crates-access, a deploy-key action for the private crates repo
CI / shellcheck + selftests (pull_request) Successful in 1m18s
CI / move v1 to main (pull_request) Skipped

The job token cannot read daniel/gitdan-crates, so CI authenticates with a
read-only deploy key. The action writes it 0600 outside the workspace, pins
the forge's host key (RSA, the only type offered, confirmed against the
trusted known_hosts record and a fresh keyscan), exports GIT_SSH_COMMAND,
proves access with ls-remote, and fails on a Cargo.lock with two commits of
the crates repo. The selftest is wired into selftest.sh.

Existing actions and scripts are untouched.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MfBCVNDv3y5gm2djeZSAk4
This commit is contained in:
2026-11-19 10:26:36 -06:00
co-authored by Claude Fable 5.2
parent 2cada26957
commit ea5b60ae94
7 changed files with 386 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
FAST=0
[ "${1:-}" = "--fast" ] && FAST=1
FIXTURE_TESTS=(cache-root-selftest.sh seed-target-dir-selftest.sh publish-snapshot-selftest.sh prune-cache-selftest.sh release-v1-selftest.sh)
FIXTURE_TESTS=(cache-root-selftest.sh seed-target-dir-selftest.sh publish-snapshot-selftest.sh prune-cache-selftest.sh release-v1-selftest.sh crates-access-selftest.sh)
CARGO_TESTS=(hardlink-clone-selftest.sh restore-mtimes-selftest.sh)
TESTS=("${FIXTURE_TESTS[@]}")