From fd0d4091d9870e3f8f7e4e0e652168aaf0ba5bbc Mon Sep 17 00:00:00 2001 From: marvinWolff <36923121+marvinWolff@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:04:52 +0100 Subject: [PATCH] feat(ci): remove flag for full licencse scanning (#1258) This flag will scan more licenses then we need --- .github/scripts/scan-for-licenses.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/scan-for-licenses.sh b/.github/scripts/scan-for-licenses.sh index ffd566b85..ef332bf54 100755 --- a/.github/scripts/scan-for-licenses.sh +++ b/.github/scripts/scan-for-licenses.sh @@ -36,7 +36,7 @@ function scanLicenses() { local unacceptedLicenses=() local unacceptedLicense licenseMap="$(yq -r '.annotations["artifacthub.io/images"]' "$chart/Chart.yaml" | yq -r '.[] | .image' | - parallel -k trivy image {} --severity HIGH,CRITICAL,MEDIUM -f json --scanners license --license-full --quiet | + parallel -k trivy image {} --severity HIGH,CRITICAL,MEDIUM -f json --scanners license --quiet | jq -s -r "$licenseConversionJq")" mapfile -t unacceptedLicenses < <(jq <<<"$licenseMap" -r --argjson acceptedLicenses "[\"$(echo -n "${WHITELIST[@]}" | tr " " \\n | paste -sd '@' | sed 's#@#","#g')\"]" '(keys-$acceptedLicenses)[]')