Skip to content

Commit

Permalink
feat(ci): remove flag for full licencse scanning (#1258)
Browse files Browse the repository at this point in the history
This flag will scan more licenses then we need
  • Loading branch information
marvinWolff authored Nov 27, 2024
1 parent 4969ebb commit fd0d409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/scan-for-licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)[]')
Expand Down

0 comments on commit fd0d409

Please sign in to comment.