Skip to content

Commit ef89997

Browse files
authored
Fix the syft command again (#3200)
1 parent 1184826 commit ef89997

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/generate_upload_sbom.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ bucket_name=""
2424
registry_name=""
2525
s3_path=""
2626
output_folder="$PWD"
27-
sbom_binary=$(which syft)
2827

2928
function usage() {
3029
echo "Generates and uploads an SBOM to an S3 bucket.
@@ -61,7 +60,7 @@ function generate_sbom() {
6160
local digest=$3
6261
local file_name=$4
6362
set +Ee
64-
"${sbom_binary}" --platform "$platform" -o "cyclonedx-json" "$image_pull_spec@$digest" > "$file_name"
63+
syft --platform "$platform" -o "cyclonedx-json" "$image_pull_spec@$digest" > "$file_name"
6564
sbom_return_code=$?
6665
set -Ee
6766
if ((sbom_return_code != 0)); then

0 commit comments

Comments
 (0)