Skip to content

Commit

Permalink
Fix trivy report download (k3s-io#10943)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola authored Sep 25, 2024
1 parent cda31eb commit 97e8486
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: trivy-report
path: trivy-report.txt

- name: Add Trivy Report to PR
run: |
sudo chown runner:runner trivy-report.txt
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 '```' >> trivy-report.txt
Expand Down

0 comments on commit 97e8486

Please sign in to comment.