Skip to content

Commit

Permalink
Update trivy-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc authored Dec 11, 2023
1 parent 989f763 commit fc66186
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,16 @@ jobs:
scan-type: 'fs'
scan-ref: './maven-repo-local/org/springframework/pulsar'
trivy-config: trivy.yaml
format: 'json'
output: 'trivy-results.json'
severity: 'CRITICAL'

- name: Output Trivy scan results
if: always()
run: |
cat trivy-results.json
# - name: Output Trivy scan results
# if: always()
# run: |
# cat trivy-results.json

- name: Upload Trivy scan results
uses: actions/upload-artifact@v3
if: always()
with:
name: trivy-results
path: trivy-results.json
retention-days: 3
# - name: Upload Trivy scan results
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: trivy-results
# path: trivy-results.json
# retention-days: 3

0 comments on commit fc66186

Please sign in to comment.