Skip to content

fix(security): Judge Trivy DS-0029 in the task-template Dockerfile #6501

Not planned

Description

@github-actions

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 reports DS-0029 at a Dockerfile inside the .venv site-packages of the harbor package. The path is not project source, so the project cannot fix it. The issue judges the HIGH alert and records a time-limited ignore entry in .trivyignore.yaml.

Acceptance criteria

Requirement: Dated DS-0029 ignore entry

The Trivy ignore file SHALL hold a dated misconfiguration entry for rule DS-0029 at the harbor template Dockerfile path, with a statement and a future expiry date.

Scenario: The IaC scan reads the dated entry

  • WHEN uv run devops ci --check --only trivy runs on the repository.
  • THEN The command exits 0 and reports no DS-0029 finding for .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile.

Requirement: Alert 281 is no longer open

The project MUST record the DS-0029 alert as judged, so alert 281 is no longer open.

Scenario: The alert state after the next IaC scan

  • WHEN gh api repos/dan-petty/devops-cli/code-scanning/alerts/281 --jq .state runs after the next IaC scan.
  • THEN The command prints fixed or dismissed.

Existing Tool Considered

No alternatives check has run. Trivy covers the need: its .trivyignore.yaml file supports a path-scoped misconfiguration entry with a statement and an expiry, and the IaC scan reads that file. Trivy lacks no part of this need. The proposal builds no code.

Key questions

  • How should the DS-0029 alert for the harbor template Dockerfile be judged?: Add a time-limited entry to .trivyignore.yaml for DS-0029 at that exact path. Do not edit the Dockerfile, because it is inside .venv and is a third-party package template. Do not dismiss the alert alone, because a dismissal leaves no dated repository record that the IaC scan reads. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md]
    • Rejected: Fix the Dockerfile. The path is inside .venv site-packages and is not project source. A package install can overwrite a fix.
    • Rejected: Dismiss alert 281 with a reason. A dismissal hides the alert but leaves no dated repository entry that the IaC scan reads.
    • Chosen: Add a dated .trivyignore.yaml entry. SECURITY.md permits a time-limited ignore entry. The trivy-config-alerts spec requires a dated ignore entry for the harbor template Dockerfile.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/security
    on Nov 20, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 20, 2026
  3. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor
    • Priority: P1-High. Live HIGH severity security misconfiguration with a 14-day judgment window.
  4. added
    priority/p1-high
    on Nov 20, 2026
  5. changed the title [-]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 DS-0029 in the task-template Dockerfile[/+] on Nov 20, 2026
  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    The job shortened the title of this item. The summary had 129 characters, and the limit is 60. The type and the scope stay.

    • Before: fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile
    • After: fix(security): Judge Trivy DS-0029 in the task-template Dockerfile
    • Source of the summary: the background model
  7. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  8. dan-petty commented on Nov 23, 2026

    @dan-petty
    Owner

    Newer issue #6856 and PR #6907 replace this item. PR #6907 renewed the dated ignore entry for DS-0029 on the Harbor task-template Dockerfile in .trivyignore.yaml. The finding is resolved.

  9. removed
    status/new
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions