1
0
mirror of https://github.com/tommytran732/Synapse-Docker synced 2024-11-22 02:11:34 -05:00

Scan with Trivy on build

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-04-21 21:50:36 -04:00 committed by GitHub
parent 4a3d3af9f8
commit a9c898a6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,3 +74,18 @@ jobs:
env:
COSIGN_EXPERIMENTAL: "true"
TAGS: ${{ steps.meta.outputs.tags }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ghcr.io/tommytran732/synapse'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
vuln-type: "os"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'