mirror of
https://github.com/patrickbeane/vuln-summary.git
synced 2026-12-01 11:38:35 +00:00
fix(workflow): better formatting
This commit is contained in:
1 parent
fd392d4d92
commit
81d82def5b
1 file changed
+1
-1
@@ -29,7 +29,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build summary string
|
- name: Build summary string
|
||||||
run: |
|
run: |
|
||||||
summary=$(jq -r '.last_scan | "Last scan: \(.date) — Critical: \(.critical) | High: \(.high) | Medium: \(.medium) | Low: \(.low) | Total: \(.total)"' trivy_sanitized.json)
|
summary=$(jq -r '.last_scan | "_Last scan: \(.date)_\n\nCritical: \(.critical)\nHigh: \(.high)\nMedium: \(.medium)\nLow: \(.low)\n\nTotal: \(.total)"' trivy_sanitized.json)
|
||||||
echo "SUMMARY=$summary" >> $GITHUB_ENV
|
echo "SUMMARY=$summary" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Update README
|
- name: Update README
|
||||||
|
|||||||
Reference in new issue
Block a user