From 8e9cb9810919f5cacff802fc72b56ad848aac14e Mon Sep 17 00:00:00 2001 From: polaris940 <101352781+polaris940@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:25:11 -0500 Subject: [PATCH] jx: Adds hash regex (#3988) * jx: Adds hash regex Adds custom hash to filter out .sbom file * fix incorrect hash --- bucket/jx.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bucket/jx.json b/bucket/jx.json index 95b2db4bf6..de7d55f886 100644 --- a/bucket/jx.json +++ b/bucket/jx.json @@ -6,7 +6,7 @@ "architecture": { "64bit": { "url": "https://github.com/jenkins-x/jx/releases/download/v3.5.33/jx-windows-amd64.zip", - "hash": "66a631587dc1c59b8be25290c245783eeec9a4d1ab5cddbb7247156ea0989c1a" + "hash": "c68cc24b23a3f0529cff1d728f2aaa9c38e0a887e3e94ef461e1bdcdb59aae0d" } }, "pre_install": "Stop-Process -Name 'jx' -ErrorAction 'Ignore' -Verbose", @@ -19,7 +19,8 @@ } }, "hash": { - "url": "$baseurl/jx-checksums.txt" + "url": "$baseurl/jx-checksums.txt", + "regex": "(?m)$checksum[\\x20\\t]+.*$basename(?:[\\x20\\t]+\\d+)?$" } } }