Skip to content

Commit 15ec8ed

Browse files
authored
fix: jq Parse error (#2335)
Apologies for all the PRs. Should work this time. Successful run: https://github.com/ianlewis/actions-test/actions/runs/5352271438 Signed-off-by: Ian Lewis <ianlewis@google.com>
1 parent 463d420 commit 15ec8ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/builders/nodejs/generate-layout.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

5050
package_id="${package_name}@${package_version}"
5151
if [ "${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.

0 commit comments

Comments
 (0)