Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
19 changes: 19 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Container Security Scan
on: [push, pull_request]

jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build hardened image
run: docker build -f dockerfiles/Dockerfile.v4-distroless -t myapp:ci .

- name: Scan with Trivy (fail on CRITICAL/HIGH)
uses: aquasecurity/trivy-action@master
with:
image-ref: myapp:ci
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true
6 changes: 6 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Base-image CVEs in gcr.io/distroless/python3-debian12.
# Fixed in Debian upstream but not yet shipped in the distroless base build.
# Action: re-pin the base digest and delete these lines once distroless rebuilds.
# Reviewed 2026-06-23.
CVE-2025-13836
CVE-2026-45447
Loading