All checks were successful
Build and deploy / Validate source (push) Successful in 1m5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m22s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m24s
It was 5 GB, then 1 GB from 2026-10-21. ClamAV keeps scanning up to its own 2000 MiB limit; a larger file passes by the file-format check, as before the 1 GB limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
471 B
Python
14 lines
471 B
Python
"""Limits shared by upload admission and the malware scanner."""
|
|
import os
|
|
|
|
CLAMAV_STREAM_MAX_BYTES = 2000 * 1024 * 1024 # infra/clamd.conf StreamMaxLength
|
|
|
|
|
|
def scan_limit_bytes():
|
|
"""The largest file ClamAV scans; above it the format check releases it."""
|
|
return min(CLAMAV_STREAM_MAX_BYTES, int(os.environ.get('SCAN_MAX_BYTES', str(CLAMAV_STREAM_MAX_BYTES))))
|
|
|
|
|
|
def upload_limit_bytes():
|
|
return int(os.environ.get('MAX_UPLOAD_BYTES', str(4 * 1024 ** 3)))
|