Repository navigation
fix: remove stale SSH-to-HTTPS rewrite so CI tests real install path - #231
DynamycSound wants to merge 1 commit into
Conversation
|
I see the intent, and testing the real install path is a good instinct, but this can't land as written because it turns the install CI red: without the insteadOf rewrite the marketplace clone falls back to SSH and fails with no keys on the runner, which is the exact reason the rewrite exists. If there's a way to exercise the genuine path without breaking CI (a separate opt-in job, say) I'm interested. Reworking it that way would change my mind. |
addyosmani
left a comment
There was a problem hiding this comment.
Careful here, this rewrite isn't stale: it's what lets claude plugin install clone over HTTPS in CI where there's no SSH key. Removing it will likely make the install job fail on the SSH clone (I hit exactly this recently). If you have a green CI run without it, show me and I'll reconsider; otherwise I'd keep it.
Summary
Removes the
git config --global url."https://github.com/".insteadOf "git@github.com:"step from thetest-installCI job. The SSH-clone failure it worked around (#77) was fixed upstream in the Claude Code CLI, and keeping the rewrite means CI never exercises the install path users actually run — it would stay green even if the SSH regression described in #77 came back.PR type
Why
Issue #77 reported that
claude plugin install agent-skills@addy-agent-skillsfails inside Docker/devcontainers because older CLI versions (v2.1.110 era) cloned the{"source": "github"}plugin source viagit@github.com:, which requires SSH keys that containers don't have. The CI workflow (added 2026-04-04, before the upstream fix) needed theinsteadOfrewrite for the same reason.That root cause no longer exists: on the current CLI (v2.1.170, which CI installs fresh via
npm install -g @anthropic-ai/claude-code), the plugin-source clone goes over anonymous HTTPS. I verified this empirically by running issue #77's exact reproduction steps (claude plugin marketplace add addyosmani/agent-skillsfollowed byclaude plugin install agent-skills@addy-agent-skills) in a container with no ssh binary, no SSH keys, no git credential helper, and no URL rewrites — both steps succeed.With the workaround now dead code, its only remaining effect is harmful: it masks exactly the failure mode this workflow was created to catch. GitHub Actions runners have no GitHub SSH credentials configured, so after this change the
test-installjob faithfully reproduces #77's environment on every push and acts as a permanent regression guard for it.Issue or approval
Fixes #77
UI / behavior impact
Policy check
Scope boundaries
.github/workflows/test-plugin-install.yml— removed the single "Configure git to use HTTPS" step (3 lines deleted, nothing added). No other file touched; no lines reformatted;marketplace.json, hooks, skills, and the other two CI jobs are unchanged.Testing
python3 -c "import yaml; yaml.safe_load(...)"on the modified workflow — parses cleanly.node scripts/validate-skills.js— 23 skills checked, 0 errors, 0 warnings, PASSED (unchanged baseline).claude plugin validate .— Validation passed.insteadOfrewrites:claude plugin marketplace add ./→ successclaude plugin marketplace list→ marketplace listedclaude plugin install agent-skills@addy-agent-skills --scope user→ Successfully installed (plugin source cloned from GitHub over anonymous HTTPS; installed commit5e262b2matches currentmainHEAD)claude plugin marketplace add addyosmani/agent-skills→ install) in the same SSH-less container → success, confirming the original bug no longer reproduces.STATIC ANALYSIS:
before fix: the
test-installjob rewrote everygit@github.com:URL to HTTPS beforeclaude plugin installran, so the job could not detect a recurrence of #77 — an SSH-cloning regression in the CLI or a future SSH-only source inmarketplace.jsonwould pass CI while failing for every devcontainer/CI user.after fix: the job runs
claude plugin installexactly as end users do, on a runner with no GitHub SSH credentials — any SSH-clone regression now fails CI immediately.edge cases:
actions/checkoutcredential persistence is written to the checked-out repo's local config (http.extraheader), not global config, and the plugin clone happens under~/.claude/plugins/— so checkout credentials neither help nor mask anything. The repo is public, so the anonymous HTTPS clone needs no auth.regression risk: the change only deletes a git config line in an ephemeral CI runner; it cannot affect plugin contents, the published marketplace, or user installs. Worst case, if the CLI ever reverts to SSH cloning, the job fails — which is the intended signal, and re-adding the one-line workaround would be trivial.
Screenshots / Video (UI changes only)
Not a UI change.
Breaking changes
None.
Linked issues
Fixes #77