Skip to content

fix(ci): send User-Agent in crates.io poll; make publish re-runnable#38

Merged
cuihtlauac merged 1 commit into
mainfrom
fix/publish-workflow-ua
Jun 19, 2026
Merged

fix(ci): send User-Agent in crates.io poll; make publish re-runnable#38
cuihtlauac merged 1 commit into
mainfrom
fix/publish-workflow-ua

Conversation

@cuihtlauac

Copy link
Copy Markdown
Member

Problem

The v1.0.0 Publish run published the crate to crates.io successfully (Trusted Publishing works), but the "Wait for crate to be live" poll failed every attempt, aborting the job before the MCP Registry steps ran. Root cause: the crates.io API returns HTTP 403 without a User-Agent header, and the poll used curl -fsS with none.

Net result: sudo-proxy 1.0.0 is live on crates.io, but the server is not yet registered in the MCP Registry.

Fix

  • Send a User-Agent on all crates.io API requests.
  • Add a workflow_dispatch trigger and derive the version from Cargo.toml, so the workflow can be run manually to (re)register the server when the crate is already published.
  • Skip cargo publish when the version is already on crates.io, so dispatch re-runs don't fail on an existing version.

After merge

Run this workflow via workflow_dispatch on main to register io.github.tarides/sudo-proxy 1.0.0 (cargo publish is skipped; OIDC handles the registry auth).

🤖 Generated with Claude Code

The crates.io API returns HTTP 403 without a User-Agent, so the "wait for
crate to be live" poll in publish.yml failed every attempt and aborted the
job before the MCP Registry steps ran (the v1.0.0 crate published fine; only
the registry listing was skipped).

- Send a User-Agent on all crates.io API requests.
- Add a workflow_dispatch trigger and derive the version from Cargo.toml so
  the workflow can be run manually (e.g. to register the server when the crate
  is already published).
- Skip `cargo publish` when the version is already on crates.io, so dispatch
  re-runs don't fail on an existing version.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cuihtlauac cuihtlauac merged commit 62a9c60 into main Jun 19, 2026
16 checks passed
@cuihtlauac cuihtlauac deleted the fix/publish-workflow-ua branch June 19, 2026 18:02
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