Skip to content

fix(security): set up SSH so classpath jobs can clone private git deps - #2

Closed
arootroatch wants to merge 1 commit into
masterfrom
fix/c4ke-ssh-classpath-jobs
Closed

fix(security): set up SSH so classpath jobs can clone private git deps#2
arootroatch wants to merge 1 commit into
masterfrom
fix/c4ke-ssh-classpath-jobs

Conversation

@arootroatch

@arootroatch arootroatch commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Superseded by #3 (same change, generic secret input name). Closed; branch removed.

clj-kondo and clj-watson build the full classpath (`clojure -Spath` /
clj-watson scan), which must clone private git dependencies. The reusable
workflow had no SSH setup, so those jobs only succeeded when a warm
~/.gitlibs cache happened to already contain the dep; on a cold cache
(e.g. after any deps.edn change) they failed with a "Permission denied
(publickey)" clone error. clj-holmes, gitleaks, shellcheck and semgrep
don't build the classpath and are unaffected.

Add an optional, scoped `private-git-ssh-key` workflow_call secret and,
only in the two classpath-building jobs, a "Set up SSH" step that mirrors
the consumer build workflows (write the deploy key to ~/.ssh/id_ed25519,
ssh-keyscan github.com). The step self-skips when the secret is unset,
so consumers without private git deps (and the self-test) are unaffected.
Scoped on purpose — not a return to blanket `secrets: inherit`.
@arootroatch
arootroatch force-pushed the fix/c4ke-ssh-classpath-jobs branch from 45aa722 to 814969c Compare July 20, 2026 18:41
@arootroatch
arootroatch deleted the fix/c4ke-ssh-classpath-jobs branch July 20, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant