Skip to content

ci: limit Trivy to vulnerability scanning (scanners: vuln)#174

Merged
Uno-Takashi merged 1 commit into
mainfrom
fix/trivy-scanners-vuln-only
Jun 22, 2026
Merged

ci: limit Trivy to vulnerability scanning (scanners: vuln)#174
Uno-Takashi merged 1 commit into
mainfrom
fix/trivy-scanners-vuln-only

Conversation

@Uno-Takashi

Copy link
Copy Markdown
Member

Problem

The trivy job in the Security workflow has been failing on main. The failure is not a CVE — Trivy's default scanners are vuln,secret, and the secret scanner flagged:

HIGH: AsymmetricPrivateKey (private-key)
/opt/venv/.../autobahn/wamp/__pycache__/cryptosign.cpython-313.pyc

That "key" is an example Ed25519 OpenSSH private key in a docstring of autobahn's cryptosign module (a transitive dependency via daphne). It is a documentation sample, not a real secret — a false positive. OS/library vulnerability counts are 0.

Fix

Add scanners: "vuln" to the Trivy step so it only scans for HIGH/CRITICAL vulnerabilities (matching the step's name and intent). Secret scanning — which only tripped on this third-party docstring — is disabled for this image scan.

Notes

  • No change to vulnerability coverage; severity, exit-code, ignore-unfixed unchanged.
  • Pre-existing failure, unrelated to recent license-check changes.

🤖 Generated with Claude Code

The Trivy step ran the default vuln+secret scanners, and secret scanning
flagged an example OpenSSH private key embedded in a third-party library
docstring (autobahn's cryptosign module, a transitive dep via daphne) as a
HIGH AsymmetricPrivateKey finding, failing the job. This is a false positive,
not a real secret leak or CVE.

Set scanners: vuln so the step does what its name implies — scan the image
for HIGH/CRITICAL OS/library vulnerabilities only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Uno-Takashi Uno-Takashi merged commit 67089b6 into main Jun 22, 2026
19 checks passed
@Uno-Takashi Uno-Takashi deleted the fix/trivy-scanners-vuln-only branch June 22, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant