Skip to content

Conversation

@newpavlov
Copy link
Member

No description provided.

@newpavlov newpavlov requested a review from dhardy January 19, 2026 17:15
Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Just checked, and it's still enabled on the crates.io side, so not clear why it failed:

Failed to retrieve token from Cargo registry. Status: 400. Error: No Trusted Publishing config found for repository `rust-random/rand_core`.

A shame because for multi-crate repos with shared versions it could actually save time if it worked.

@dhardy dhardy merged commit 9dabe12 into master Jan 19, 2026
13 checks passed
@dhardy dhardy deleted the rm/gh_release branch January 19, 2026 17:24
@newpavlov
Copy link
Member Author

Could you try to re-create the environment and crates.io settings from scratch? The problem may be caused by me deleting and creating new enviroment with the same name during previous experiments, i.e. crates.io may see the "old" environment which no longer exists on the GH side.

@dhardy
Copy link
Member

dhardy commented Jan 19, 2026

I had to do this last time we made a release... no, I think that was for getrandom.

Okay, done.

@dhardy
Copy link
Member

dhardy commented Jan 20, 2026

Could you try to re-create the environment and crates.io settings from scratch?

Were you intending to revert this PR?

So far it seems that this type of "automation" is more trouble than it's worth. It's also not fully automated since I have to approve a GH notification for each release.

@newpavlov
Copy link
Member Author

newpavlov commented Jan 20, 2026

Were you intending to revert this PR?

No? The environment is relevant for the cargo publish job which I intentionally kept.

So far it seems that this type of "automation" is more trouble than it's worth.

The main advantage is that we no longer need to store long-term crates.io secrets on a local machine (I remind you that they are stored in plaintext in your home folder) which makes potential attacks more difficult.

It's also not fully automated since I have to approve a GH notification for each release.

We can configure more complex rules or remove it completely. But in the latter case anyone who is able to push tags would be able to publish crates.

@dhardy
Copy link
Member

dhardy commented Jan 20, 2026

No? The environment is relevant for the cargo publish job which I intentionally kept.

Right.

Deployment succeeded this time.

The main advantage is that we no longer need to store long-term crates.io secrets on a local machine

I respect the aim. More work is needed to realise this since crates.io tokens do not limit their permissions to a project or crate.

@newpavlov
Copy link
Member Author

@dhardy
BTW you now can switch crates to Trusted Publishing Only Mode, see: https://blog.rust-lang.org/2026/01/21/crates-io-development-update/#trusted-publishing-only-mode

@dhardy
Copy link
Member

dhardy commented Jan 21, 2026

Enabled for rand_core and getrandom.

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.

3 participants