trivy-fs-scan: enforce by default; 'false' is the emergency escape (#5)

Feedback from the first rollout: a default-off gate is the wrong way
around — the default must be active and enforced, with the opt-out as an
explicit, documented per-invocation emergency flag (same posture as the
image-scan gate).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P5NjXQ3jmyVjimHQxnyKhg
Reviewed-on: #5
Co-authored-by: peet <peet@noctrl.eu>
This commit was merged in pull request #5.
This commit is contained in:
peetandClaude Fable 5 authored and peet committed 2026-08-30 19:36:33 +02:00
1 parent e501ab145f
commit cc11e264c6
2 files changed
+9 -6

No files matched your search

+4 -3
View File
@@ -123,9 +123,10 @@ from repo secrets; no-op when the secret is unset (build stays unsigned).
### Trivy Filesystem Scan ### Trivy Filesystem Scan
Scans the checked-out workspace for vulnerable dependencies (lockfile-based) — Scans the checked-out workspace for vulnerable dependencies (lockfile-based) —
for repos that build artifacts (APKs) rather than images. Non-blocking by for repos that build artifacts (APKs) rather than images. Enforcing by default
default (`enforce: "false"`); requires committed Gradle lockfiles and the (fails on fixable HIGH/CRITICAL); `enforce: "false"` is a temporary emergency
trivy binary on the runner. Pin the job to `linux,build,amd64`. escape only. Requires committed Gradle lockfiles and the trivy binary on the
runner. Pin the job to `linux,build,amd64`.
**Location:** [`./trivy-fs-scan`](./trivy-fs-scan) **Location:** [`./trivy-fs-scan`](./trivy-fs-scan)
+5 -3
View File
@@ -18,10 +18,12 @@ inputs:
default: HIGH,CRITICAL default: HIGH,CRITICAL
enforce: enforce:
description: > description: >
"true" fails the job on findings with an available fix; "false" only "true" (the default) fails the job on findings with an available fix.
reports them (start non-blocking, flip once the noise level is known). Set "false" ONLY as a temporary emergency escape (e.g. an urgent fix
must ship while a finding is being addressed) — always with an inline
comment in the workflow explaining why.
required: false required: false
default: "false" default: "true"
runs: runs:
using: composite using: composite