From 1621644b34a1316ba62a2934e5fd55ca5b15ce5a Mon Sep 17 00:00:00 2001 From: Michael Long Date: Mon, 19 Feb 2024 12:25:10 -0500 Subject: [PATCH] modify file upload --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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