Skip to content

ci(release): enable trusted publishing & attestations#4899

Merged
WillLillis merged 1 commit intotree-sitter:masterfrom
ObserverOfTime:trusted-publishing
Dec 8, 2025
Merged

ci(release): enable trusted publishing & attestations#4899
WillLillis merged 1 commit intotree-sitter:masterfrom
ObserverOfTime:trusted-publishing

Conversation

@ObserverOfTime
Copy link
Member

In light of the recent (and older) supply chain attacks through compromised tokens, enabling trusted publishing allows us to get rid of our tokens and restrict releases to this particular workflow.

Provided the upcoming release is published successfully, the next steps will be to remove the tokens from the secrets (assuming they are backed up somewhere), and to disallow tokens in general for the npm packages.

@clason
Copy link
Contributor

clason commented Dec 6, 2025

Have you run this new workflow on your fork and verified that it can successfully create a release (without uploading, of course)?

@ObserverOfTime
Copy link
Member Author

Unfortunately trusted publishing can't be tested without actually publishing because most of the configuration is on the registry.

@clason
Copy link
Contributor

clason commented Dec 6, 2025

But you can at least test that the changes did not break the release part. We want to make sure that we don't need another round of fixup releases.

@maxbrunsfeld
Copy link
Contributor

maxbrunsfeld commented Dec 6, 2025

Great idea, thanks for setting this up @ObserverOfTime.

I can remove the tokens once we see this works.

@ObserverOfTime
Copy link
Member Author

ObserverOfTime commented Dec 6, 2025

@WillLillis WillLillis merged commit 8ca17d1 into tree-sitter:master Dec 8, 2025
13 checks passed
@ObserverOfTime ObserverOfTime deleted the trusted-publishing branch December 8, 2025 21:13
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.

4 participants