Skip to content

Commit

Permalink
Testing clj-watson vulnerability scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotesqrl committed Sep 12, 2024
1 parent 1d7f4bb commit 7a53911
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/clj-vuln-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ jobs:
id: watson-clean
if: ${{ steps.watson-scan.outputs.REPORT_FAILED == 'true' }}
run: |
export rep_body=$(echo '${{ steps.watson-scan.outputs.REPORT_BODY }}' | awk '/Dependency Information/{p=1}p')
export slack_msg=$(echo "blocks: [{"type": "header", "text": {"type": "plain_text", "text": "XXX Vulnerability Report"}}, \
{"type": "divider"}, {"type": "section", "text": {"type": "mrkdwn", "text": "```$(rep_body)```"}}]})
echo 'REPORT_BODY<<EOF' >> $GITHUB_OUTPUT
echo '${{ steps.watson-scan.outputs.REPORT_BODY }}' | awk '/Dependency Information/{p=1}p' >> $GITHUB_OUTPUT
# echo '${{ steps.watson-scan.outputs.REPORT_BODY }}' | awk '/Dependency Information/{p=1}p' >> $GITHUB_OUTPUT
echo $slack_msg >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT

- name: Send custom JSON data to Slack workflow
Expand Down

0 comments on commit 7a53911

Please sign in to comment.