Skip to content

Commit

Permalink
Create markdown output (#107)
Browse files Browse the repository at this point in the history
* create markdown output

* update step summary

* update output
  • Loading branch information
pedrompflopes authored Feb 23, 2023
1 parent cee1f2f commit 948c24b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ else
echo "PR decoration not created."
fi

echo "# Checkmarx scan 🔒" >> $GITHUB_STEP_SUMMARY
echo "Program exits with code: " $exitCode >> $GITHUB_STEP_SUMMARY

if [ -n "$scanId" ]; then
echo "🔗 ScanId: $scanId" >> $GITHUB_STEP_SUMMARY
/app/bin/cx results show --scan-id "${scanId}" --report-format markdown
cat ./cx_result.md >$GITHUB_STEP_SUMMARY
rm ./cx_result.md
echo "cxScanID=$scanId" >> $GITHUB_OUTPUT
fi

if [ $exitCode -eq 0 ]
then
echo "Scan completed" >> $GITHUB_STEP_SUMMARY
echo "Scan completed"
else
echo "Scan Failed" >> $GITHUB_STEP_SUMMARY
echo "Scan Failed"
exit $exitCode
fi

0 comments on commit 948c24b

Please sign in to comment.