Skip to content

Commit cf3b43f

Browse files
Naveen-Palarkid15r
andauthored
Added trivy.yaml (#1289)
* Added trivy.yaml separately * fix * Added Trivy config, ignore, undo ci-cd * fixes * Update code --------- Co-authored-by: Arkadii Yakovets <[email protected]>
1 parent 9e8b364 commit cf3b43f

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.github/workflows/run-ci-cd.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ jobs:
182182
- name: Run Trivy Repository Scan
183183
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
184184
with:
185+
config: trivy.yaml
185186
scan-type: repo
186-
severity: HIGH,CRITICAL
187187

188188
scan-ci-dependencies:
189189
name: Run CI Denendencies Scan
@@ -197,8 +197,8 @@ jobs:
197197
- name: Run Trivy Filesystem Scan
198198
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
199199
with:
200+
config: trivy.yaml
200201
scan-type: fs
201-
severity: HIGH,CRITICAL
202202

203203
build-staging-images:
204204
name: Build Staging Images
@@ -269,16 +269,16 @@ jobs:
269269
- name: Scan backend image
270270
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
271271
with:
272+
config: trivy.yaml
272273
exit-code: 1
273274
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:staging
274-
severity: HIGH,CRITICAL
275275

276276
- name: Scan frontend image
277277
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
278278
with:
279+
config: trivy.yaml
279280
exit-code: 1
280281
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:staging
281-
severity: HIGH,CRITICAL
282282

283283
deploy-staging-nest:
284284
name: Deploy Nest Staging
@@ -433,16 +433,16 @@ jobs:
433433
- name: Scan backend image
434434
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
435435
with:
436+
config: trivy.yaml
436437
exit-code: 1
437438
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:production
438-
severity: HIGH,CRITICAL
439439

440440
- name: Scan frontend image
441441
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
442442
with:
443+
config: trivy.yaml
443444
exit-code: 1
444445
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:production
445-
severity: HIGH,CRITICAL
446446

447447
deploy-production-nest:
448448
name: Deploy Nest to Production

.trivyignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CVE-2024-55549 # libxslt use-after-free
2+
CVE-2024-56171 # libxml2 use-after-free
3+
CVE-2024-8176 # libexpat stack overflow
4+
CVE-2025-24855 # libxslt use-after-free
5+
CVE-2025-24928 # libxml2 buffer overflow
6+
CVE-2025-27113 # libxml2 null dereference
7+
CVE-2025-31115 # xz heap use-after-free

trivy.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
filesystem:
2+
skip-dirs:
3+
- backend/.venv/
4+
- frontend/node_modules/
5+
6+
timeout: 10m
7+
8+
vulnerability:
9+
ignore-unfixed: true
10+
ignorefile: .trivyignore
11+
security-checks:
12+
- config
13+
- secret
14+
- vuln
15+
severity:
16+
- CRITICAL
17+
- HIGH

0 commit comments

Comments
 (0)