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

fix: getting npm pack filename #2316

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

ianlewis
Copy link
Member

@ianlewis ianlewis commented Jun 21, 2023

Fixes getting the filename from the result of npm pack --json. Some older versions return the incorrect file name.

This change falls back and attempts to determine the filename if the file is not initially found.

Fixes #2290 #2294 #2295 #2296 #2297 #2298 #2299

@ianlewis ianlewis merged commit 01daa2e into slsa-framework:main Jun 21, 2023
enteraga6 pushed a commit to enteraga6/slsa-github-generator that referenced this pull request Jul 7, 2023
Fixes getting the filename from the result of `npm pack --json`. Some
older versions return the incorrect file name.

This change falls back and attempts to determine the filename if the
file is not initially found.

Fixes slsa-framework#2290  slsa-framework#2294 slsa-framework#2295 slsa-framework#2296 slsa-framework#2297 slsa-framework#2298 slsa-framework#2299

Signed-off-by: Ian Lewis <[email protected]>
Signed-off-by: Noah Elzner <[email protected]>
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.

[e2e]: nodejs tag main default slsa3
2 participants