Skip to content

fix(ci): add crates-io-auth-action for Trusted Publishing#18

Merged
doitian merged 1 commit intodevelopfrom
fix/trusted-publishing-auth
Feb 2, 2026
Merged

fix(ci): add crates-io-auth-action for Trusted Publishing#18
doitian merged 1 commit intodevelopfrom
fix/trusted-publishing-auth

Conversation

@doitian
Copy link
Member

@doitian doitian commented Feb 2, 2026

Summary

Fixes the deploy workflow that was failing with "no token found" error.

The workflow was missing the rust-lang/crates-io-auth-action step which exchanges the GitHub OIDC token for a crates.io publish token.

Changes

  • Add rust-lang/crates-io-auth-action@v1 step to exchange OIDC token
  • Pass the token via CARGO_REGISTRY_TOKEN env var to cargo publish
  • Remove environment: crates.io (not required for Trusted Publishing)
  • Update AGENTS.md with correct Trusted Publisher setup instructions

Setup Required

Configure the trusted publisher at https://crates.io/crates/fiber-sphinx/settings → Trusted Publishing:

  • Repository owner: cryptape
  • Repository name: fiber-sphinx
  • Workflow filename: deploy.yml
  • Environment: (leave empty)

References

The deploy workflow was missing the rust-lang/crates-io-auth-action
step which exchanges the OIDC token for a crates.io publish token.

Changes:
- Add rust-lang/crates-io-auth-action@v1 step
- Pass token via CARGO_REGISTRY_TOKEN env var
- Remove environment: crates.io (not required)
- Update AGENTS.md with correct setup instructions

Co-Authored-By: Claude <noreply@anthropic.com>
@doitian doitian merged commit 2f1ff39 into develop Feb 2, 2026
11 checks passed
@doitian doitian deleted the fix/trusted-publishing-auth branch February 2, 2026 05:57
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.77%. Comparing base (6c3bf1c) to head (8d78607).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #18   +/-   ##
========================================
  Coverage    17.77%   17.77%           
========================================
  Files            1        1           
  Lines         2909     2909           
========================================
  Hits           517      517           
  Misses        2392     2392           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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