Skip to content

ci: start setting up trusted publishing#87

Merged
dubadub merged 2 commits intocooklang:mainfrom
tomodachi94:ci-trusted-publishing
Jan 11, 2026
Merged

ci: start setting up trusted publishing#87
dubadub merged 2 commits intocooklang:mainfrom
tomodachi94:ci-trusted-publishing

Conversation

@tomodachi94
Copy link
Contributor

@tomodachi94 tomodachi94 commented Jan 11, 2026

This approach eliminates the security risks associated with long-lived write tokens, which can be compromised, accidentally exposed in logs, or require manual rotation. (npmjs.com)

There is still a little bit of manual work you'll need to do before this will work:

You should also delete CARGO_REGISTRY_TOKEN and NPM_TOKEN in repository settings once this is merged.

> This approach eliminates the security risks associated with long-lived write tokens, which can be compromised, accidentally exposed in logs, or require manual rotation. (npmjs.com)

You will need to configure this on npmjs.com:
https://docs.npmjs.com/trusted-publishers#for-github-actions
> This approach eliminates the security risks associated with long-lived write tokens, which can be compromised, accidentally exposed in logs, or require manual rotation. (npmjs.com)

You will need to configure this on crates.io:
https://crates.io/docs/trusted-publishing
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 11, 2026

commit: f7efb7e

@tomodachi94
Copy link
Contributor Author

The error in the tests doesn't seem related to this.

@dubadub
Copy link
Member

dubadub commented Jan 11, 2026

Thanks! That simplifies things with token rotation, I wasn't aware of this option.

@dubadub dubadub merged commit 4cc0823 into cooklang:main Jan 11, 2026
5 of 6 checks passed
@tomodachi94 tomodachi94 deleted the ci-trusted-publishing branch January 11, 2026 06:43
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