This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Repository navigation
Conversation
On forks, GitHub does not copy repo secrets, so secrets.DEPLOY_KEY is empty and the webfactory/ssh-agent step hard-fails with 'ssh-private-key argument is empty'. Guard every occurrence with if: DEPLOY_KEY != '' so the step is skipped on forks and still runs upstream. The two cargo git deps (agentgrep, mermaid-rs-renderer) are public 1jehuang repos referenced over https, so they resolve without the SSH rewrite.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
On forks GitHub does not copy repo secrets, so
secrets.DEPLOY_KEYis empty and everywebfactory/[email protected]step hard-fails in seconds withssh-private-key argument is empty, dying before any real build.Change
Add
if: ${{ secrets.DEPLOY_KEY != '' }}to every "Configure SSH for cargo git dependencies" step so it is skipped when the secret is absent (forks) and still runs when present (upstream). Covers all 5 occurrences: ci.yml x4 (jobs at lines ~29/179/418/672) and release.yml x1 (line ~94).The
actions/checkoutssh-key:inputs are left as-is; an empty ssh-key is harmless (checkout falls back to the token).Cargo git deps
Both git dependencies resolve over https to public repos, so they fetch without the SSH rewrite:
agentgrep = { git = "https://github.com/1jehuang/agentgrep.git", tag = "v0.1.6" }mermaid-rs-renderer = { git = "https://github.com/1jehuang/mermaid-rs-renderer.git", tag = "v0.3.1" }No
insteadOfssh rewrite exists in the repo, confirming nothing depends on the SSH agent to fetch.Result
Fork CI/release jobs no longer hard-fail on empty DEPLOY_KEY; real build/test jobs run to a genuine result. Upstream (secret present) is unaffected.