From 007abf1ff39b068baeb2381aaaeded9d770af6a2 Mon Sep 17 00:00:00 2001 From: Renato Valenzuela Date: Tue, 4 Jun 2024 21:41:27 +0000 Subject: [PATCH] Change messaging --- .github/workflows/check-binaries.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-binaries.yml b/.github/workflows/check-binaries.yml index 7f3d9cc..70abb1e 100644 --- a/.github/workflows/check-binaries.yml +++ b/.github/workflows/check-binaries.yml @@ -37,7 +37,11 @@ jobs: id: save-output run: | report_csv="$(ls -tr output.cve-bin-*.csv 2>/dev/null | tail -n1)" # last file generated - echo "Vulnerabilities stored in $report_csv" + if [ -z "$report_csv" ]; then + echo "Failure when running check" + else + echo "Vulnerabilities stored in $report_csv" + fi final_report="${report_csv}.txt" awk -F',' '{n=split($10, path, "/"); print $2,$3,$4,$5,path[n]}' "$report_csv" | column -t > "$final_report" # make the CSV nicer echo "report_contents<> "$GITHUB_OUTPUT"