Skip to content

fix: wire .trivyignore into scan/publish workflows - #491

Merged
RonaldHensbergen merged 2 commits into
mainfrom
fix/wire-trivyignore-into-scan-workflows
Aug 23, 2026
Merged

fix: wire .trivyignore into scan/publish workflows#491
RonaldHensbergen merged 2 commits into
mainfrom
fix/wire-trivyignore-into-scan-workflows

Conversation

@RonaldHensbergen

Copy link
Copy Markdown
Owner

Summary

Root-causes and fixes why the daily image scan keeps refiling the same three util-linux CVEs as duplicate issues (#481, #482, #483, #485, #486, #487) even though #484 already added the documented .trivyignore exceptions for CVE-2026-53612/53613/53614 (exp 2026-11-15).

  • image-security-scan.yml: the scheduled scan step's trivy-action invocation never passed a trivyignores input at all — .trivyignore was silently never applied to the daily rescan.
  • publish-images.yml: the pre-push gate passed ignorefile: .trivyignore, but that input doesn't exist on aquasecurity/trivy-action@v0.36.0 (the real input is trivyignores); GitHub Actions silently drops unknown with: keys, so this gate also never honored the exception file.

Both are fixed to pass trivyignores: .trivyignore, matching the working usage already present in the other publish-images.yml gate step.

Type Of Change

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Test only

User Impact

No CLI runtime behavior change. Once merged, the next scheduled Image Security Scan run and the publish-images.yml pre-push gate will actually honor the already-approved, unexpired .trivyignore exceptions, so duplicate vuln-scan issues stop being filed for CVEs that are already tracked and excepted per docs/image-scanning.md.

Validation

  • python3 -c "import yaml; yaml.safe_load(...)" on both workflow files — valid YAML.
  • yamllint . — clean (only pre-existing warnings inside .venv, not repo files).
  • npx markdownlint-cli@0.49.0 — clean.
  • Confirmed via aquasecurity/trivy-action@v0.36.0's action.yaml/entrypoint.sh that trivyignores (not ignorefile) is the only input that sets TRIVY_IGNOREFILE, and that the scan step in image-security-scan.yml previously passed neither.

Checklist

  • Docs updated (CHANGELOG.md)
  • No secrets committed
  • Generated artifacts not committed

Closes #481
Closes #482
Closes #483
Closes #485
Closes #486
Closes #487

image-security-scan.yml's scheduled scan step never passed a
trivyignores input to trivy-action, and publish-images.yml's
pre-push gate used the wrong input name (ignorefile instead of
trivyignores). Both silently ignored .trivyignore, so the
CVE-2026-53612/53613/53614 exceptions added in #484 never took
effect and the daily scan kept refiling duplicate issues.

Closes #481, Closes #482, Closes #483, Closes #485, Closes #486, Closes #487

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
test_publish_images_workflow.py previously enshrined the ignorefile
typo as expected behavior; update it and add a regression assertion
in test_image_security_scan_workflow.py to lock in trivyignores.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@SemTiOne SemTiOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@RonaldHensbergen
RonaldHensbergen merged commit d044fd4 into main Aug 23, 2026
14 checks passed
@RonaldHensbergen
RonaldHensbergen deleted the fix/wire-trivyignore-into-scan-workflows branch August 23, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants