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
14 changes: 13 additions & 1 deletion .github/workflows/image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
tags: buildcage:scan

- name: Scan image with Trivy
id: trivy-scan
if: github.ref == 'refs/heads/main'
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
image-ref: ${{ github.event_name == 'schedule' && format('ghcr.io/{0}:latest', github.repository) || 'buildcage:scan' }}
Expand All @@ -49,6 +49,18 @@ jobs:
severity: CRITICAL,HIGH

- name: Upload Trivy scan results to GitHub Security
if: github.ref == 'refs/heads/main'
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
sarif_file: trivy-results.sarif

- name: Scan image with Trivy
if: github.ref != 'refs/heads/main'
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
image-ref: buildcage:scan
ignore-unfixed: true
trivyignores: .trivyignore
scanners: vuln
format: table
severity: CRITICAL,HIGH
13 changes: 13 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ CVE-2026-1229
# libexpat: XML_ExternalEntityParserCreate does not copy encoding handler user data.
# No external XML entity processing path exists in this product.
CVE-2026-24515

# QuickJS stack overflow via deeply nested JS input.
# Only internal tool scripts (convert-rule.mjs, report.mjs) are executed;
# no untrusted JavaScript is evaluated.
CVE-2023-31922

# zlib: buffer overflow in standalone untgz demo utility.
# The core zlib library (libz) is unaffected; untgz is not used in this image.
CVE-2026-22184

# Go stdlib net/url: incorrect parsing of IPv6 host literals.
# CNI plugins do not parse user-supplied URLs.
CVE-2026-25679
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG CNI_VERSION=v1.9.0
ARG CNI_VERSION=v1.9.1

# Prepare dependencies
FROM alpine:3.23@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 AS deps
Expand All @@ -10,7 +10,7 @@ RUN apk add --no-cache curl gettext && \
| tar -C /opt/cni/bin -xz ./bridge ./host-local ./loopback

# Final image
FROM moby/buildkit:v0.28.0@sha256:37539dd4d60fc70968d164d3850d903a2c56f6402214a1953fbf9fcb81ada731
FROM moby/buildkit:v0.29.0@sha256:0039c1d47e8748b5afea56f4e85f14febaf34452bd99d9552d2daa82262b5cc5

LABEL org.opencontainers.image.title="buildcage" \
org.opencontainers.image.description="Secure Docker build environment with network access control" \
Expand Down
Loading