Repository navigation
Conversation
plugins_test compared docs/multiple-tests against an image built with the latest Trivy DB and OpenSSF index, so every database update changed the expected results and failed CI on unrelated PRs, Dependabot bumps included. Fixture tests now run against codacy-trivy:fixtures, built with the DB digest and OpenSSF commit pinned in scripts/fixture-dbs.env. Released images still ship the latest databases. The auto-merge workflow now closes Dependabot PRs that touch the intentionally vulnerable fixture sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.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
👀 Worth a closer look
The Dependabot workflow can continue toward auto-merge when fetching the PR diff fails, potentially allowing fixture-source updates through without inspection. This should be reviewed alongside the workflow branching that protects pinned fixture sources.
Test suggestions
- Verify the fixture image builds from the configured Trivy digest and OpenSSF commit and contains the resulting databases.
- Verify CircleCI runs plugins_test with the fixture image while publication still uses the normal latest-database image.
- Verify the pin-refresh script updates both database references and rejects invalid responses.
- Verify fixture regeneration defaults to codacy-trivy:fixtures and supports an explicit image override.
- Verify the Dependabot workflow closes PRs touching docs/multiple-tests and leaves other Dependabot PRs eligible for existing auto-merge behavior.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify the fixture image builds from the configured Trivy digest and OpenSSF commit and contains the resulting databases.
2. Verify CircleCI runs plugins_test with the fixture image while publication still uses the normal latest-database image.
3. Verify the pin-refresh script updates both database references and rejects invalid responses.
4. Verify fixture regeneration defaults to codacy-trivy:fixtures and supports an explicit image override.
5. Verify the Dependabot workflow closes PRs touching docs/multiple-tests and leaves other Dependabot PRs eligible for existing auto-merge behavior.
TIP Add review instructions in .codacy/instructions/review.md, or an AGENTS.md, so the reviewer knows your conventions.
TIP How was this review? Give us feedback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
- Run tests, the Trivy DB download and the OpenSSF index build in parallel. - Cache Go modules and build output for generate_and_test, keyed on go.sum. - Persist only what later jobs use instead of the whole working directory. - Build the fixtures image in parallel with publish_docker_local. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
lolgab
approved these changes
Nov 27, 2026
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.
Every Dependabot PR here gets stuck on
plugins_test. Thedocs/multiple-testsfixtures are checked against an image built with the latest Trivy DB and OpenSSF index, so each database update changes the expected results and fails CI on PRs that didn't change anything related (e.g. #342). On top of that, Dependabot keeps opening security updates for the fixture sources, which are vulnerable on purpose.What this changes:
plugins_testnow runs againstcodacy-trivy:fixtures, built by a newbuild_fixtures_imagejob with the Trivy DB digest and OpenSSF commit pinned inscripts/fixture-dbs.env. The published image still ships the latest databases; only the test image is pinned.results.xmlnow changes only when detection logic changes (e.g. a Trivy bump). Moving the pin forward isscripts/pin_fixture_dbs.sh+scripts/build_fixture_image.sh+scripts/regenerate_fixtures.pyin one PR (README → Fixture test databases).docs/multiple-tests/instead of approving them. Other Dependabot behaviour is unchanged.pattern-vulnerability-medium.Trade-off: the DB is pinned by digest on
ghcr.io/aquasecurity/trivy-db. If Aqua ever deletes that version,build_fixtures_imagefails with "manifest unknown" and the fix is to move the pin forward.After merge:
Close the open fixture PRs, which were approved and set to auto-merge before this guard existed: chore(deps): bump github.com/ollama/ollama from 0.1.46 to 0.20.3 in /docs/multiple-tests/pattern-vulnerability-high/src/golang #284, chore(deps): bump github.com/ollama/ollama from 0.1.46 to 0.20.3 in /docs/multiple-tests/pattern-vulnerability-critical/src/golang #285, chore(deps): bump axios from 0.21.0 to 0.32.0 in /docs/multiple-tests/pattern-vulnerability-critical/src/javascript #298, chore(deps): bump golang.org/x/net from 0.25.0 to 0.55.0 in /docs/multiple-tests/pattern-vulnerability-critical/src/golang #311, chore(deps): bump golang.org/x/net from 0.25.0 to 0.55.0 in /docs/multiple-tests/pattern-vulnerability-high/src/golang #313, chore(deps): bump axios from 0.21.0 to 0.33.0 in /docs/multiple-tests/pattern-vulnerability-high/src/javascript #317, chore(deps): bump org.apache.dolphinscheduler:dolphinscheduler-task-api from 3.2.1 to 3.3.1 in /docs/multiple-tests/pattern-vulnerability-critical/src/java #327, chore(deps): bump org.apache.dolphinscheduler:dolphinscheduler-task-api from 3.2.1 to 3.3.1 in /docs/multiple-tests/pattern-vulnerability-high/src/java #329
Rebase the pending Go bumps (e.g. chore(deps): bump github.com/containerd/containerd/v2 from 2.3.5 to 2.3.7 #342, chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.44.0 to 1.45.0 #333) so they run against the pinned image
(Repo admin) Add a Dependabot auto-triage rule dismissing alerts whose manifest path is under
docs/multiple-tests/plugins_testgreen on this PR (not run locally: the plugins-test binary doesn't run under emulation on Apple Silicon)🤖 Generated with Claude Code