Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/run-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
with:
scan-type: repo
severity: HIGH,CRITICAL
config: ./trivy.yaml

scan-ci-dependencies:
name: Run CI Denendencies Scan
Expand All @@ -198,7 +198,7 @@ jobs:
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
with:
scan-type: fs
severity: HIGH,CRITICAL
config: ./trivy.yaml

build-staging-images:
name: Build Staging Images
Expand Down Expand Up @@ -271,14 +271,14 @@ jobs:
with:
exit-code: 1
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:staging
severity: HIGH,CRITICAL
config: ./trivy.yaml

- name: Scan frontend image
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
with:
exit-code: 1
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:staging
severity: HIGH,CRITICAL
config: ./trivy.yaml

deploy-staging-nest:
name: Deploy Nest Staging
Expand Down Expand Up @@ -435,14 +435,14 @@ jobs:
with:
exit-code: 1
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:production
severity: HIGH,CRITICAL
config: ./trivy.yaml

- name: Scan frontend image
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
with:
exit-code: 1
image-ref: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:production
severity: HIGH,CRITICAL
config: ./trivy.yaml

deploy-production-nest:
name: Deploy Nest to Production
Expand Down
7 changes: 7 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CVE-2024-56171
CVE-2024-55549
CVE-2024-8176
CVE-2025-24855
CVE-2025-24928
CVE-2025-27113
CVE-2025-31115
12 changes: 12 additions & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
vulnerability:
ignorefile: .trivyignore
ignore-unfixed: true
security-checks: [vuln, config, secret]
severity: [HIGH, CRITICAL]

filesystem:
skip-dirs:
- frontend/node_modules/
- backend/.venv/

timeout: 10m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix YAML Newline at End of File
YAML lint and the CI/CD pipeline have flagged a missing newline at the end of the file. Please add a newline after line 12 to comply with standard YAML formatting guidelines.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 12-12: no new line character at the end of file

(new-line-at-end-of-file)

🪛 GitHub Actions: Run CI/CD

[error] 12-12: no new line character at the end of file (new-line-at-end-of-file)

Loading