Skip to content

fix(security): Judge Trivy-config KSV-0013 in cronjob-repos-drift.yaml #7562

Done

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0013
  • Path: k8s/devops/cronjob-repos-drift.yaml
  • Severity: MEDIUM

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

Add a time-limited .trivyignore.yaml entry for KSV-0013 at k8s/devops/cronjob-repos-drift.yaml. Trivy reports the untagged runner image, and Argo CD Image Updater pins the image digest in Application devops. The ignore records that reason and closes alert 1188. A person merges the pull request after the checks pass.

Acceptance criteria

Requirement: Time-limited Trivy ignore for the drift CronJob

The repository SHALL hold a time-limited .trivyignore.yaml entry for rule KSV-0013 at k8s/devops/cronjob-repos-drift.yaml with an expiry date no later than 90 days after the merge.

Scenario: Trivy ignores the untagged runner image

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN The check passes and the Trivy scan reports no KSV-0013 finding for k8s/devops/cronjob-repos-drift.yaml.

Requirement: Code-scanning alert 1188 closes

The open code-scanning alert 1188 SHALL close after the next Trivy scan reads the ignore.

Scenario: Alert state after the scan

  • WHEN devops gh api repos/dan-petty/devops-cli/code-scanning/alerts/1188 --jq '.state' runs after the scan
  • THEN The command prints fixed.

Requirement: Pending a person after the merge

A person SHALL merge the pull request after the required checks pass.

Scenario: Merge gate

  • WHEN The required checks pass on the pull request
  • THEN A person merges the pull request.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0013. The change uses the .trivyignore.yaml support of Trivy and builds no new code.

Key questions

  • Does the drift CronJob already document why its runner image has no tag?: Yes. The ignore-check.kube-linter.io/latest-tag annotation says that Argo CD Image Updater sets the image digest in Application devops. [sources: k8s/devops/cronjob-repos-drift.yaml]
  • How should the project judge KSV-0013 on the drift CronJob?: Add a time-limited .trivyignore.yaml entry for KSV-0013 at k8s/devops/cronjob-repos-drift.yaml. The entry states the image-updater reason and holds an expiry date no later than 90 days after the merge. (best practice) [sources: k8s/devops/cronjob-repos-drift.yaml, SECURITY.md]
    • Chosen: Add a time-limited Trivy ignore. The image is intentionally untagged and Argo CD Image Updater pins its digest. The ignore keeps the reason and an expiry in the repository.
    • Rejected: Dismiss alert 1188. A dismissal closes the alert once. It leaves no repository record and no expiry for the next scan.
    • Rejected: Add a fixed image tag. The repository holds no release tag for the runner image. A latest tag still triggers KSV-0013.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Possible duplicate: fix(security): Judge Trivy-config KSV-0013 in cronjob-repos-drift.yaml #7396, which may ask for the same change. The model names Judge Trivy-config KSV-0013 in k8s/devops/cronjob-repos-drift.yaml (alert 1188): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yaml as the change that both ask for. Same rule, same file, same alert 1188, same acceptance criteria as issue 7396. A person closes one of the two if that is so.
  4. changed the title [-]fix(security): judge Trivy-config KSV-0013 in k8s/devops/cronjob-repos-drift.yaml[/-] [+]fix(security): Judge Trivy-config KSV-0013 in cronjob-repos-drift.yaml[/+] on Nov 28, 2026
  5. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

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

    • Before: fix(security): judge Trivy-config KSV-0013 in k8s/devops/cronjob-repos-drift.yaml
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

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

  7. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 28, 2026
  8. removed
    status/in-review
    owner/agent
    on Nov 28, 2026
  9. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-28 20:38 UTC

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/p2-mediumscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions