Unverified Commit 97e84860 authored by Derek Nola's avatar Derek Nola Committed by GitHub

Fix trivy report download (#10943)

parent cda31ebd
...@@ -68,11 +68,9 @@ jobs: ...@@ -68,11 +68,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: trivy-report name: trivy-report
path: trivy-report.txt
- name: Add Trivy Report to PR - name: Add Trivy Report to PR
run: | run: |
sudo chown runner:runner trivy-report.txt
if [ -s trivy-report.txt ] && [ -n "$(grep -v '^\s*$' trivy-report.txt)" ]; then if [ -s trivy-report.txt ] && [ -n "$(grep -v '^\s*$' trivy-report.txt)" ]; then
echo '```' | cat - trivy-report.txt > temp && mv temp trivy-report.txt echo '```' | cat - trivy-report.txt > temp && mv temp trivy-report.txt
echo '```' >> trivy-report.txt echo '```' >> trivy-report.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment