Skip to content

Commit

Permalink
xxxx
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Aug 27, 2024
1 parent acf5016 commit f041528
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ jobs:
ref: ${{ github.event.issue.pull_request.head.ref }}

- name: Build K3s Image
run: make package-image
run: |
make local
make package-image
- name: On Failure, Launch Debug Session
uses: dereknola/action-upterm@v1.1
if: ${{ failure() }}
with:
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.20.0
with:
Expand All @@ -35,4 +32,13 @@ jobs:
severity: "HIGH,CRITICAL"
output: "trivy-report.txt"
- name: Add Trivy Report to PR
run: gh pr comment ${{ github.event.issue.number }} -F trivy-report.txt
run: |
gh repo set-default ${{ github.repository }}
gh pr comment ${{ github.event.issue.number }} -F trivy-report.txt
- name: On Failure, Launch Debug Session
uses: dereknola/action-upterm@v1.1
if: ${{ failure() }}
with:
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5

0 comments on commit f041528

Please sign in to comment.