hyperledger-cacti / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
344 stars 286 forks source link

ci(release): add sigstore npm integration through --provenance #3622

Open adrianbatuto opened 1 week ago

adrianbatuto commented 1 week ago

Commit to be reviewed


ci(release): add sigstore npm integration through --provenance

Primary Changes
----------------
1. Added provenance config to the publish workflows.

Fixes #2623

Pull Request Requirements

Character Limit

A Must Read for Beginners For rebasing and squashing, here's a must read guide for beginners.

adrianbatuto commented 1 week ago

The config added in this PR have been tested as I published to npm using the workflows with my personal npm token. Please see the screenshots below of the two published packages with provenance.

@adrianbatuto/cactus-common image (4)

@adrianbatuto/cactus-core-api image (5)

adrianbatuto commented 1 week ago

@adrianbatuto Thank you! Could you please confirm that you've published the packages on the screenshots with the .github/workflows/all-nodejs-packages-publish.yaml workflow and not the other one? If no, then please double check that the mentioned workflow is working as well and then pass it back for review!

@petermetz, I was also able to publish with provenance using all-nodejs-packages-publish.yaml. https://github.com/adrianbatuto/cacti/actions/runs/11801663866