Description
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
devops-cli-service commentedon Nov 28, 2026
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.yamlas 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.[-]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[/+]devops-cli-service commentedon Nov 28, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0013 in k8s/devops/cronjob-repos-drift.yamldevops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 28, 2026
Released in v0.239.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.239.0
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 20:38 UTC