-
Notifications
You must be signed in to change notification settings - Fork 137
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
[bug] Provenance subject pkg:npm/hereby/hereby@1.8.3 does not match the package: pkg:npm/hereby@1.8.3 #2359
Comments
Indeed, the sigstore file does contain this:
Must be somthing here that is thinking that my package is scoped:
|
Yeah, this code doesn't quite work: raw_package_scope=$(echo "${PACKAGE_NAME:-}" | cut -d'/' -f1)
raw_package_name=$(echo "${PACKAGE_NAME:-}" | cut -d'/' -f2)
if [ "${raw_package_name}" == "" ]; then
raw_package_name="${raw_package_scope}"
raw_package_scope=""
fi When there's no |
Right. This was a mistake on my part. We need to handle packages without a scope properly. Should have used the |
Fixes #2359 Fixes parsing of npm package names when non-scoped. Signed-off-by: Ian Lewis <ianlewis@google.com>
Fixes slsa-framework#2359 Fixes parsing of npm package names when non-scoped. Signed-off-by: Ian Lewis <ianlewis@google.com> Signed-off-by: Noah Elzner <elzner@google.com>
Describe the bug
I just set up the nodejs builder to publish my package with provenance; I had to use the main version because the npm version used in the published workflow is too old and fails, but when I do get it running, it appears to fail because the subject and the package do not match.
To Reproduce
Steps to reproduce the behavior:
https://github.com/jakebailey/hereby/actions/runs/5483129736/jobs/9989176122#step:3:399
Expected behavior
Publish succeeds.
The text was updated successfully, but these errors were encountered: