Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add provenance to all published packages #13097

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

saibotk
Copy link

@saibotk saibotk commented Mar 6, 2024

This commit adds provenance for all published packages. See the NPM documentation 0.

Provenance will allow people to verify that the tailwindcss packages were actually built on GH Actions and with the content of the corresponding commit. This will help with supply chain security.

For this to work, the id-token permission was added only where necessary.
Additionally, all the oxide packages + cli package were adjusted to include their repository link in the package.json, so that the build works and the builds can be linked to this repository.

This commit adds provenance for all published packages. See the NPM documentation [0].

Provenance will allow people to verify that the tailwindcss packages were actually built on GH Actions and with the content of the corresponding commit. This will help with supply chain security.

For this to work, the `id-token` permission was added only where necessary.

[0]: https://docs.npmjs.com/generating-provenance-statements
This is needed for provenance, to link the repository to the build accoring to the NPM docs [0].

[0]: https://docs.npmjs.com/generating-provenance-statements#prerequisites
@KrisBraun KrisBraun self-assigned this Mar 7, 2024
Copy link
Contributor

@KrisBraun KrisBraun left a comment

Choose a reason for hiding this comment

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

Thanks, @saibotk. This looks good. Thanks for contributing!

@KrisBraun KrisBraun merged commit d86fd0b into tailwindlabs:master Mar 7, 2024
8 of 9 checks passed
@saibotk saibotk deleted the ci-provenance branch March 7, 2024 21:19
KrisBraun added a commit that referenced this pull request Mar 8, 2024
Based on #13097 by @saibotk

Add [provenance](https://docs.npmjs.com/generating-provenance-statements) for all published packages.

---
Co-authored-by: saibotk <git@saibotk.de>
RobinMalfait pushed a commit that referenced this pull request Mar 8, 2024
* Add provenance to all packages

Based on #13097 by @saibotk

Add [provenance](https://docs.npmjs.com/generating-provenance-statements) for all published packages.

---
Co-authored-by: saibotk <git@saibotk.de>

* Document reason for id-token permission

* Update changelog
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.

None yet

2 participants