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

Feat: Adding provenance publish config #1127

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Conversation

tolzhabayev
Copy link
Collaborator

What this PR does / why we need it:
Linking npm package builds better to source code and CI builds using sigstore.

More context in: https://docs.npmjs.com/generating-provenance-statements

I don't think we have to force publishing new versions just because of this change. I would rather just wait for regular releases to happen to those packages after this change is merged.

@tolzhabayev tolzhabayev requested a review from a team as a code owner September 20, 2024 17:47
@tolzhabayev tolzhabayev requested review from mckn and removed request for a team September 20, 2024 17:47
@tolzhabayev tolzhabayev self-assigned this Sep 20, 2024
@tolzhabayev tolzhabayev added enhancement New feature or request skip-release labels Sep 20, 2024
Copy link

github-actions bot commented Sep 20, 2024

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged but will not trigger a new release. To trigger a new release add the release label before merging.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@tolzhabayev tolzhabayev added the patch Increment the patch version when merged label Sep 20, 2024
Copy link
Collaborator

@jackw jackw left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@@ -186,6 +186,9 @@ jobs:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
permissions:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jackw I've added this because I assume it will be required. fyi

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at the docs we do need to set the id-token. However are we using this github token or the github-app-token further down?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My assumption is that they are a bit different and it needs the specific id-token. I guess we will see once we run it :)

@tolzhabayev tolzhabayev merged commit 35d8175 into main Sep 25, 2024
19 checks passed
@tolzhabayev tolzhabayev deleted the feat/add-sigstore-provenance branch September 25, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch Increment the patch version when merged released This issue/pull request has been released.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants