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(publish): workaround provenance bug #14996

Merged
merged 2 commits into from
Nov 15, 2023
Merged

ci(publish): workaround provenance bug #14996

merged 2 commits into from
Nov 15, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Nov 15, 2023

Description

Workaround until slsa-framework/slsa-github-generator#2758 is released.

Disable provenance if tag passed has @. This means that publishing vite will still have provenance.

NOTES:

The publish script is called here:

run: pnpm run ci-publish ${{ github.ref_name }}

Release script parses the package name and tag like so, which we emulate:

https://github.com/vitejs/release-scripts/blob/e5a8ab0b45838c3cb43efec6594d2cda3039c74c/src/publish.ts#L23-L24

@bluwy bluwy added the p1-chore Doesn't change code behavior (priority) label Nov 15, 2023
patak-dev
patak-dev previously approved these changes Nov 15, 2023
@patak-dev patak-dev enabled auto-merge (squash) November 15, 2023 14:50
@patak-dev patak-dev merged commit 0469bea into main Nov 15, 2023
9 checks passed
@patak-dev patak-dev deleted the workaround-provenance branch November 15, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1-chore Doesn't change code behavior (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants