File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ echo "${audit_json}" | jq --arg severity "${severity}" '
13
13
{
14
14
package: .value.module_name,
15
15
vulnerable: .value.vulnerable_versions,
16
- fixed_in: .value.patched_versions
16
+ fixed_in: .value.patched_versions,
17
+ findings: .value.findings
17
18
}
18
19
)
19
20
' > $output_file
@@ -23,7 +24,11 @@ audit_length=$(jq 'length' $output_file)
23
24
if [[ " ${audit_length} " -gt " 0" ]]; then
24
25
echo " Actionable vulnerabilities found in the following packages:"
25
26
jq -r ' .[] | "\u001b[1m\(.package)\u001b[0m vulnerable in \u001b[31m\(.vulnerable)\u001b[0m fixed in \u001b[32m\(.fixed_in)\u001b[0m"' $output_file | while read -r line; do echo -e " $line " ; done
27
+ echo " "
26
28
echo " Output written to ${output_file} "
29
+ cat $output_file
30
+ echo " "
31
+ echo " This script can be rerun with: './.github/workflows/audit-dependencies.sh $severity '"
27
32
exit 1
28
33
else
29
34
echo " No actionable vulnerabilities"
Original file line number Diff line number Diff line change 46
46
"type": "section",
47
47
"text": {
48
48
"type": "mrkdwn",
49
- "text": "🚨 Actionable vulnerabilities found: <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
49
+ "text": "🚨 Actionable vulnerabilities found: <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Script Run Details>"
50
50
}
51
51
},
52
52
]
You can’t perform that action at this time.
0 commit comments