Skip to content

Commit

Permalink
feat: added upload trivy results to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 3, 2022
1 parent 9d02436 commit 396a4b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ jobs:
labels: "organization: ${{github.repository_owner}}, repository: ${{github.repository}}, branch: ${{needs.Setup.outputs.Branch}}, commit: ${{needs.Setup.outputs.ShaHash}}, date: ${{needs.Setup.outputs.Date}}, timestamp: ${{needs.Setup.outputs.Timestamp}}"

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@stable
with:
image-ref: '${{ steps.node_setup.outputs.docker_main_image }}'
format: 'table'
Expand All @@ -349,6 +349,10 @@ jobs:
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: 'trivy-results.sarif'

#--------------------------------------------------#
# Deploy #
Expand Down

0 comments on commit 396a4b0

Please sign in to comment.