Skip to content

Add ssh_key secret parameter to support sync setup_command.#22

Merged
vorporeal merged 1 commit intomainfrom
david/add-ssh-key-support-for-sync-setup
Apr 14, 2026
Merged

Add ssh_key secret parameter to support sync setup_command.#22
vorporeal merged 1 commit intomainfrom
david/add-ssh-key-support-for-sync-setup

Conversation

@vorporeal
Copy link
Copy Markdown
Contributor

@vorporeal vorporeal commented Apr 14, 2026

Description

The setup_command workflow parameter (added in #16) allows consuming repos to run commands like cargo fetch before sync begins. However, if the source repo has private dependencies that require SSH credentials (e.g. private crates), there's no way to provide them — the reusable workflow runs in a separate job, so the embedding workflow can't set up the SSH agent beforehand.

This adds an optional ssh_key secret to the sync workflow. When provided, it populates the SSH agent (via webfactory/ssh-agent) before the setup command runs, allowing commands like cargo fetch to access private repositories.

Testing

Verified the workflow YAML is syntactically valid. The new step is conditional on secrets.ssh_key != '', so existing consumers that don't pass the secret are unaffected.

Co-Authored-By: Oz oz-agent@warp.dev

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vorporeal vorporeal requested a review from danielpeng2 April 14, 2026 02:11
@vorporeal vorporeal marked this pull request as ready for review April 14, 2026 02:11
@vorporeal vorporeal merged commit f894fa3 into main Apr 14, 2026
1 check passed
@vorporeal vorporeal deleted the david/add-ssh-key-support-for-sync-setup branch April 14, 2026 14:39
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.

2 participants