mirror of
https://github.com/Radarr/Radarr
synced 2026-01-24 00:13:43 +01:00
fix(ci): use filesystem scan instead of image scan for Trivy
This commit is contained in:
parent
4fe3c5f483
commit
f7098a3a49
1 changed files with 6 additions and 7 deletions
13
.github/workflows/trivy.yml
vendored
13
.github/workflows/trivy.yml
vendored
|
|
@ -1,5 +1,6 @@
|
|||
# Trivy vulnerability scanner for container images
|
||||
# Scans Docker images for CVEs and uploads results to GitHub Security tab
|
||||
# Trivy vulnerability scanner
|
||||
# Scans for CVEs in filesystem/dependencies and uploads to GitHub Security tab
|
||||
# Note: Image scanning requires built artifacts, use release workflow for that
|
||||
|
||||
name: Trivy Security Scan
|
||||
|
||||
|
|
@ -23,13 +24,11 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t ghcr.io/cheir-mneme/aletheia:${{ github.sha }} -f docker/Dockerfile .
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
- name: Run Trivy filesystem scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'ghcr.io/cheir-mneme/aletheia:${{ github.sha }}'
|
||||
scan-type: 'fs'
|
||||
scan-ref: '.'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
|
|
|||
Loading…
Reference in a new issue