diff --git a/entrypoint.sh b/entrypoint.sh index c43f146..343fa7d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,11 +33,11 @@ ls -lsah mkdir sboms # give the output SBOM a traceable name -out_file="sboms/inspector-scan-sbom_" +prefix="sboms/inspector-scan-sbom_" #out_file+=echo $GITHUB_RUN_ID #out_file+="_" -out_file+=$(date +"%Y-%m-%d_%H-%M-%S") -out_file+=$(echo .json) +dtg=$(date +"%Y-%m-%d_%H-%M-%S") +out_file=$prefix$dtg.json echo "Out file $out_file" $sbomgen $artifact_type $artifact_path_arg $artifact_path $prog --scan-sbom -o $out_file