Skip to content

ci(security): add warn-only Trivy dependency CVE scan - #1073

Merged
Simran-B merged 2 commits into
mainfrom
ci/trivy-cve-scanning
Aug 5, 2026
Merged

ci(security): add warn-only Trivy dependency CVE scan#1073
Simran-B merged 2 commits into
mainfrom
ci/trivy-cve-scanning

Conversation

@MarkusReadius

@MarkusReadius MarkusReadius commented Jul 30, 2026

Copy link
Copy Markdown
Member

Description

Adds a warn-only Trivy dependency CVE scan for the one dependency surface this repository has, the arangoproxy Go module. One job in the setup workflow pinned to arangodb/trivy-scan@1.1.2: findings never fail the build (gate CRITICAL/HIGH, full-severity report stored as artifacts), but the job does fail if toolchain/arangoproxy/go.mod stops being scanned, so the dependency surface cannot silently drop out of scope. Zero findings today at any severity.

ignore-unfixed: true is explicit per review feedback. Placing the job in .circleci/config.yml rather than the generated config keeps it to one file and guarantees it runs on every pipeline, including plain PRs.

Upstream PRs

None. CI-only change, no documentation content affected.

  • 3.10:
  • 3.11:
  • 3.12:
  • 4.x:

Adds a dependency-cve-scan job to the setup workflow so it runs on every
pipeline. It reports fixable CRITICAL/HIGH CVEs in the repo's dependency
manifests, currently toolchain/arangoproxy/go.mod.

Findings are warnings only. Coverage is not: expect-targets names the
manifest, so the job goes red if it stops being scanned rather than
passing green over nothing.
@arangodb-docs-automation

Copy link
Copy Markdown
Contributor

Deploy Preview Available Via
https://deploy-preview-1073--docs-hugo.netlify.app

@cla-bot cla-bot Bot added the cla-signed label Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

CircleCI now includes the Trivy scan orb and runs a warning-only filesystem vulnerability scan targeting toolchain/arangoproxy/go.mod for high and critical findings.

Changes

Dependency vulnerability scanning

Layer / File(s) Summary
Add Trivy dependency scan
.circleci/config.yml
Registers the Trivy orb and adds a workflow setup scan for high and critical vulnerabilities in toolchain/arangoproxy/go.mod without failing the job on findings.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: simran-b

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a warn-only Trivy dependency CVE scan to CI.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/trivy-cve-scanning

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.circleci/config.yml:
- Around line 141-150: Update the dependency-cve-scan trivy/scan-fs
configuration to exclude vulnerabilities without available fixes by enabling the
orb’s documented ignore-unfixed option, or confirm and rely on that default for
the pinned orb version. Preserve the existing CRITICAL,HIGH severity filter and
warn-only fail-on-findings behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3fcb17c8-9d69-4799-b809-99affb7d72a2

📥 Commits

Reviewing files that changed from the base of the PR and between 1a777af and 41ad279.

📒 Files selected for processing (1)
  • .circleci/config.yml

Comment thread .circleci/config.yml
@Simran-B
Simran-B merged commit 43f9759 into main Aug 5, 2026
7 checks passed
@Simran-B
Simran-B deleted the ci/trivy-cve-scanning branch August 5, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants