diff --git a/entrypoint.sh b/entrypoint.sh index a40ba50..494c3a2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,7 +34,10 @@ mkdir sboms # give the output SBOM a traceable name timestamp=$(date +"%Y-%m-%d_%H-%M-%S") -out_file="sboms/inspector-scan-sbom_$GITHUB_RUN_ID_$timestamp.json" +workflow_id=$GITHUB_RUN_ID +prefix=sboms/inspector-scan-sbom_ +out_file="$prefix-$workflow_id-$timestamp.json" +echo "Out file $out_file" $sbomgen $artifact_type $artifact_path_arg $artifact_path $prog --scan-sbom -o $out_file