File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ package_name=$(echo "\"${raw_package_name}\"" | jq -r '. | @uri')
4545# version is URL(percent) encoded. This is the version from the project's
4646# package.json and could be a commit, or any string by the user. It does not
4747# actually have to be a version number and is not validated as such by npm.
48- package_version=$( echo " ${PACKAGE_VERSION:- } " | jq -r ' . | @uri' )
48+ package_version=$( echo " \" ${PACKAGE_VERSION:- } \" " | jq -r ' . | @uri' )
4949
5050package_id=" ${package_name} @${package_version} "
5151if [ " ${package_scope} " != " " ]; then
@@ -59,7 +59,7 @@ subject_name="pkg:npm/${package_id}"
5959#
6060# For example:
6161# sha512-geEornsf879/Ygi9byQq/mpYboMcIKiGUxJ+RgHM3DCxqnOx15ttF5FparP/ZSITHTLM39MWVhW9qPa4XxtuSg==
62- integrity_digest=${PACKAGE_INTEGRITY:- }
62+ integrity_digest=" ${PACKAGE_INTEGRITY:- } "
6363
6464# We will parse out the checksum hash algorithm used.
6565# NOTE: ensure lowercase just to make sure.
You can’t perform that action at this time.
0 commit comments