Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: DS-0029
- Path: .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile
- Severity: HIGH
Open alerts:
Judge it under "Judging a Trivy-config Alert" in SECURITY.md: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. The owner judges a CRITICAL alert within 24 hours. An agent judges any other alert within 14 days.
Proposed design
Problem statement
Trivy alert 281 reports DS-0029 in a Dockerfile under .venv/lib/python3.14/site-packages/harbor/. The file is a template of the installed harbor package, not a tracked Dockerfile of this repository. The Trivy config scan includes the virtualenv and reports a false positive. The change makes the scan skip .venv, which removes the finding at its cause and closes the alert after the next scan.
Acceptance criteria
Requirement: The Trivy config scan skips the virtualenv
The Trivy config scan workflow MUST pass --skip-dirs .venv to Trivy.
Scenario: The workflow validator accepts the change
- WHEN
uv run devops ci --check --only actionlint,zizmorruns on the pull request - THEN the command exits 0 and reports no workflow error.
Requirement: Pending a person after the merge
A person MUST merge the pull request, and the next Trivy config scan on main MUST close alert 281.
Scenario: The post-merge scan
- WHEN the pull request checks pass and a person merges it
- THEN the next Trivy config scan runs on
mainand alert 281 is closed.
Existing Tool Considered
No alternatives check has run. Trivy (aquasecurity/trivy) covers the need: its config scan supports --skip-dirs .venv and already produces the alert. It lacks a default exclusion for a local virtualenv, so the proposal passes --skip-dirs .venv in the existing scan. The change builds no code.
Key questions
- Should the scan skip
.venv, or should the project add a.trivyignore.yamlentry for DS-0029?: Skip.venvin the Trivy config scan. The Dockerfile is a template in the installedharborpackage, not a tracked Dockerfile of this repository. A path ignore would be version-specific and would hide a future real finding. (best practice) [sources: SECURITY.md, AGENTS.md]- Chosen: Skip
.venvin the Trivy config scan. Removes the false positive at its cause and keeps the scan on tracked files. - Rejected: Add a
.trivyignore.yamlentry for DS-0029. The path is version-specific and the entry hides the rule for that path until it expires. - Rejected: Dismiss alert 281 only. The next scan reports the same finding again.
- Chosen: Skip
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 26, 2026
A HIGH severity security misconfiguration is open and must be judged within 14 days.[-]fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile[/-][+]fix(security): Judge Trivy-config DS-0029 in the Dockerfile[/+]devops-cli-service commentedon Nov 26, 2026
The job shortened the title of this item. The summary had 129 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfiledevops-cli-service commentedon Nov 26, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 28, 2026
Closing as a duplicate of #7559 (Alert 281,
DS-0029on.venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile). PR #7570 skips.venvand**/.venvinTrivyConfigScannerand removes the obsolete.venv/.trivyignore.yamlentries.