fix(security): set up SSH so classpath jobs can clone private git deps - #2
Closed
arootroatch wants to merge 1 commit into
Closed
fix(security): set up SSH so classpath jobs can clone private git deps#2arootroatch wants to merge 1 commit into
arootroatch wants to merge 1 commit into
Conversation
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
force-pushed
the
fix/c4ke-ssh-classpath-jobs
branch
from
July 20, 2026 18:41
45aa722 to
814969c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded by #3 (same change, generic secret input name). Closed; branch removed.