Repository navigation
bump: Trivy to 0.74.0 - #336
Merged
Merged
Conversation
Updates the wrapped Trivy library in go.mod (with go.sum refreshed via go mod tidy) and the matching Trivy CLI/build-arg references in .circleci/config.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
Codacy analysis is not up to standards because a newly resolved indirect dependency is affected by CVE-2026-53495, enabling node-level denial of service. Update containerd to a safe release and regenerate dependency metadata before merging.
Validation scenarios are missing for the dependency upgrade, CI database download, Docker build, and plugin detection. No complex uncovered files were identified.
Test suggestions
- Verify the application builds and tests successfully with Trivy v0.74.0.
- Verify CI installs Trivy v0.74.0 and downloads the database successfully.
- Verify the Docker build passes with TRIVY_VERSION=0.74.0.
- Verify plugin detection results remain unchanged across the documented test suites.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify the application builds and tests successfully with Trivy v0.74.0.
2. Verify CI installs Trivy v0.74.0 and downloads the database successfully.
3. Verify the Docker build passes with TRIVY_VERSION=0.74.0.
4. Verify plugin detection results remain unchanged across the documented test suites.
Low confidence findings
- Add or report automated validation covering the dependency upgrade, CI database download, Docker build, and plugin detection scenarios.
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
heliocodacy
previously approved these changes
Sep 24, 2026
heliocodacy
enabled auto-merge (squash)
September 24, 2026 08:24
Updates github.com/containerd/containerd/v2 from v2.3.3 to v2.3.5 to fix a node-level DoS via CRI ExecSync goroutine leak flagged by Codacy. go mod tidy also aligned containerd/platforms and the k8s.io/client-go and k8s.io/component-base indirect deps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.72.0tov0.74.0ingo.mod(refreshedgo.sumviago mod tidy)..circleci/config.yml(install_trivy_and_download_dbsandTRIVY_VERSIONbuild arg) to keep the DB-download step and the built image on the same Trivy release.Validation
go generate ./... && go test ./...— pass.docker build --build-arg TRIVY_VERSION=0.74.0 -t codacy-trivy:latest .— succeeds (built locally with a populated Trivy DB cache and a freshly-generated OpenSSF malicious-packages index, matching the CircleCI pipeline steps).docs/multiple-tests/*/results.xmlfixtures regenerated viascripts/regenerate_fixtures.pyagainst the new image — no diff, detection results are unchanged by this bump.codacy-plugins-testrun locally against the built image:DockerTest json codacy-trivy:latest— all tests passed.DockerTest multiple codacy-trivy:latest— all 7 multiple-test suites passed (secret, malicious-packages, vulnerability critical/high/medium/minor, all-patterns).internal/docgen/rule.gounchanged, sodocs/patterns.json/docs/description/*did not need regeneration.Test plan