Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Problem

Trusted Publishing failed with:

The Trusted Publishing config for repository `redis-developer/redisctl` requires an environment, 
but the JWT does not specify one. Expected environments: `crates-io`

Solution

Add environment: crates-io to the release-plz job.

Required Action

You must create a crates-io environment in GitHub repo settings:

  1. Go to Settings > Environments
  2. Click "New environment"
  3. Name it exactly: crates-io
  4. No additional protection rules needed (optional: add reviewers for extra security)

After creating the environment and merging this PR, the next release-plz run should work.

Trusted Publishing on crates.io requires the workflow to specify an
environment that matches the one configured in the trusted publisher.

The environment 'crates-io' must be created in GitHub repo settings.
@joshrotenberg joshrotenberg merged commit c2578c3 into main Dec 16, 2025
11 checks passed
@joshrotenberg joshrotenberg deleted the fix/trusted-publishing-environment branch December 16, 2025 20:25
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