fix(security): classify Dockerfile findings and require final-image ClamAV #57

Closed
kiyi wants to merge 2 commits from kiyi/source-dockerfile-findings into main
Member

The manual base-images build in run #14 stops in source scanning because Trivy reports a Dockerfile absence finding without StartLine. This change gives source Dockerfile/general findings a stable target-scoped identity. HIGH findings remain blocking; unrelated line-less IaC still fails closed.

For the final exported container, publication now requires a fresh completed ClamAV scan. Signature-update or image-scan errors fail the publication gate and retain the scan evidence. Generic security scans keep their existing ClamAV warning behavior.

Validation: 47 focused scanner and publication tests passed locally. The broader suite has unrelated Windows-specific failures and is running in Linux CI. Tracks #56.

The manual base-images build in [run #14](https://git.gitchegumi.com/Homelab/base-images/actions/runs/14/jobs/0/attempt/1) stops in source scanning because Trivy reports a Dockerfile absence finding without StartLine. This change gives source Dockerfile/general findings a stable target-scoped identity. HIGH findings remain blocking; unrelated line-less IaC still fails closed. For the final exported container, publication now requires a fresh completed ClamAV scan. Signature-update or image-scan errors fail the publication gate and retain the scan evidence. Generic security scans keep their existing ClamAV warning behavior. Validation: 47 focused scanner and publication tests passed locally. The broader suite has unrelated Windows-specific failures and is running in Linux CI. Tracks #56.
fix(security): retain line-less source Dockerfile findings
Some checks failed
Library checks / tests (pull_request) Successful in 2m36s
Workflow acceptance / acceptance (pull_request) Successful in 5m55s
Repository security / security (pull_request) Has been cancelled
Repository security / security-1 (pull_request) Has been cancelled
1249ecedd8
Treat Trivy Dockerfile absence checks in source scans as target-scoped findings. HIGH findings still block publication; unrelated line-less IaC remains a scanner error.

Tests: targeted Dockerfile identity and blocking tests passed locally.
fix(security): require completed ClamAV scan for published images
All checks were successful
Workflow acceptance / acceptance (pull_request) Successful in 3m3s
Repository security / security-1 (pull_request) Successful in 3m34s
Repository security / security (pull_request) Successful in 0s
Library checks / tests (pull_request) Successful in 6m7s
28aaddc437
Require a fresh completed final-image ClamAV scan for the container publication path. Incomplete signature updates or image scans now fail the publication gate, while generic security scans retain their existing warning behavior.

Validation: 47 focused tests passed locally.
kiyi changed title from fix(security): retain line-less source Dockerfile findings to fix(security): classify Dockerfile findings and require final-image ClamAV 2026-09-24 15:50:28 -05:00
Owner

Not doing this

Not doing this
gitchegumi closed this pull request 2026-09-24 16:06:53 -05:00
All checks were successful
Workflow acceptance / acceptance (pull_request) Successful in 3m3s
Repository security / security-1 (pull_request) Successful in 3m34s
Required
Details
Repository security / security (pull_request) Successful in 0s
Library checks / tests (pull_request) Successful in 6m7s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Homelab/workflows!57
No description provided.