Skip to content

UID2-8159: exclude local-only Python sample tests from Trivy scans - #1086

Merged
swibi-ttd merged 1 commit into
mainfrom
swi-UID2-8159-trivy-skip-python-tests
Oct 22, 2026
Merged

swibi-ttd merged 1 commit into
mainfrom
swi-UID2-8159-trivy-skip-python-tests

Conversation

@swibi-ttd

Copy link
Copy Markdown
Contributor

Excludes test/python from Trivy scans via a repo-root trivy.yaml. That folder is a uv project developers run locally to check the Python code samples; no workflow installs it and the published site is static, so its lockfile findings (e.g. certifi GHSA-6q48-6c7w-9gw2) are noise.

  • Verified locally (Trivy 0.71.2): without the file, test/python/uv.lock reports certifi; with it, only package-lock.json is scanned.
  • Trade-off: vulnerable deps in that test project will no longer be flagged.

Ticket: UID2-8159

🤖 Generated with Claude Code

The Python sample-test project is run only by developers locally; no
workflow installs it and the published site is static, so its lockfile
findings are noise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@swibi-ttd
swibi-ttd merged commit a9cd1df into main Oct 22, 2026
1 of 2 checks passed
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.

2 participants