We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1184826 commit ef89997Copy full SHA for ef89997
scripts/generate_upload_sbom.sh
@@ -24,7 +24,6 @@ bucket_name=""
24
registry_name=""
25
s3_path=""
26
output_folder="$PWD"
27
-sbom_binary=$(which syft)
28
29
function usage() {
30
echo "Generates and uploads an SBOM to an S3 bucket.
@@ -61,7 +60,7 @@ function generate_sbom() {
61
60
local digest=$3
62
local file_name=$4
63
set +Ee
64
- "${sbom_binary}" --platform "$platform" -o "cyclonedx-json" "$image_pull_spec@$digest" > "$file_name"
+ syft --platform "$platform" -o "cyclonedx-json" "$image_pull_spec@$digest" > "$file_name"
65
sbom_return_code=$?
66
set -Ee
67
if ((sbom_return_code != 0)); then
0 commit comments