Skip to content

fix: use oidc-token output for cargo publish auth#5

Merged
njsmith merged 1 commit intoanthropic-1.49.0from
fix-publish-auth
Mar 17, 2026
Merged

fix: use oidc-token output for cargo publish auth#5
njsmith merged 1 commit intoanthropic-1.49.0from
fix-publish-auth

Conversation

@njsmith
Copy link
Copy Markdown
Collaborator

@njsmith njsmith commented Mar 17, 2026

Fix the 401 auth error in the publish workflow.

Root cause: jf config show masks the access token in its output (prints ***), so grep | awk captured a blank value. The curl debug confirmed Authorization: Bearer (empty).

Fix: Use the JFrog setup action's oidc-token step output directly via ${{ steps.setup-jfrog.outputs.oidc-token }}, passed as CARGO_REGISTRIES_CRATES_INTERNAL_TOKEN env var. Also restores credential-provider = ["cargo:token"] which cargo 1.94+ requires for non-crates.io registries.

Includes debug step with token length check and curl test for easier troubleshooting.

johnwang-ant
johnwang-ant previously approved these changes Mar 17, 2026
@njsmith njsmith dismissed johnwang-ant’s stale review March 17, 2026 02:56

The merge-base changed after approval.

@njsmith njsmith merged commit 7d435bd into anthropic-1.49.0 Mar 17, 2026
1 check passed
@njsmith njsmith deleted the fix-publish-auth branch March 17, 2026 02:59
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