Skip to content

Commit

Permalink
fix: add scan results as PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
babadofar authored and roulettedares committed Oct 31, 2022
1 parent f7ab5d5 commit 4e012a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/build-scan-push/build-scan-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
#!/bin/bash
source .jx/variables.sh
cat /workspace/source/scanresults.txt
jx gitops pr comment -c "\`\`\` $(< /workspace/source/scanresults.txt) \`\`\`"
if egrep -ri 'HIGH|CRITICAL' /workspace/source/scanresults.txt | grep -v 'Total'
then
echo "Vulnerabilities found!"
Expand Down

0 comments on commit 4e012a1

Please sign in to comment.