You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: trusted publishing failed on creating new crates. #2863
Yes, it's a limitation, and it seems there is no perfect solution to it. Since creating a new crate is not that frequent, I would close this issue for now.
We can harden the publishing by removing the API token (from the github workflow) after the first version publish. And enable trusted publishing for all new versions
It's somehow difficult to automate it in github workflow. If we want save a token in github secrets, then it becomes meaningless. If we don't save a token forever, for each release with new crates, we need to write code to adjust the workflow, it's still manual effort. So I prefer to keep it as is for now, and publish manually when we have new crates.
Activity
dannycjones commentedon Jul 21, 2026
It seems like this is just a limit of trusted publishing, I'll make sure to add this note to the release guide.
I see the crate is live: https://crates.io/crates/iceberg-cache-moka
blackmwk commentedon Jul 22, 2026
Yes, it's a limitation, and it seems there is no perfect solution to it. Since creating a new crate is not that frequent, I would close this issue for now.
kevinjqliu commentedon Jul 22, 2026
Yep, its a crates.io publishing quirk. Heres the docs: https://crates.io/docs/trusted-publishing
We can harden the publishing by removing the API token (from the github workflow) after the first version publish. And enable trusted publishing for all new versions

For example, this is for the
icebergcrate https://crates.io/crates/iceberg/settingsblackmwk commentedon Jul 22, 2026
It's somehow difficult to automate it in github workflow. If we want save a token in github secrets, then it becomes meaningless. If we don't save a token forever, for each release with new crates, we need to write code to adjust the workflow, it's still manual effort. So I prefer to keep it as is for now, and publish manually when we have new crates.
dannycjones commentedon Jul 22, 2026
The other thing missing is setting up crate ownership. Manual action by committer sounds good for now.