Skip to content

Commit

Permalink
Change messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
valerena committed Jun 4, 2024
1 parent 5863e5f commit 007abf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 007abf1

Please sign in to comment.