Submit resolved Gradle dependency graph to Dependabot by merlimat · Pull Request #288 · oxia-db/oxia-client-java · GitHub
Skip to content

Submit resolved Gradle dependency graph to Dependabot#288

Merged
merlimat merged 1 commit into
oxia-db:mainfrom
merlimat:dependabot-dependency-submission
May 6, 2026
Merged

Submit resolved Gradle dependency graph to Dependabot#288
merlimat merged 1 commit into
oxia-db:mainfrom
merlimat:dependabot-dependency-submission

Conversation

@merlimat

@merlimat merlimat commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Three open Dependabot alerts (#67, #68, #69) flag log4j-core < 2.25.4 as a transitive dep of the SpotBugs Gradle plugin (which still declares 2.23.1 / 2.24.3 in its POM).
  • The build already forces log4j-core 2.25.4 in the spotbugs configuration (build.gradle.kts:113), so the resolved classpath is patched. Dependabot's static analysis of the build files cannot see resolutionStrategy.force, so the alerts persist.
  • Add a workflow that runs gradle/actions/dependency-submission@v4 on push to main. It resolves every configuration and submits the actual graph to GitHub. Dependabot then sees log4j-core 2.25.4 everywhere and auto-closes these false positives, and any future plugin-POM noise of the same shape.

Test plan

Three open Dependabot alerts (CVE-2026-34477, CVE-2026-34478,
CVE-2026-34480) flag log4j-core < 2.25.4 with manifest_path
settings.gradle.kts and relationship "transitive". They come from the
SpotBugs Gradle plugin: spotbugs:4.8.6 (and 4.9.x) declares log4j-core
2.23.1 / 2.24.3 transitively in its POM.

The build already forces log4j-core 2.25.4 in the spotbugs configuration
(build.gradle.kts:113), so the resolved classpath is patched. But
Dependabot's dependency graph for this repo is built by static analysis
of the build files, which cannot see resolutionStrategy.force, so it
keeps reporting the unforced transitive version.

Add a workflow that runs gradle/actions/dependency-submission on push to
main. The action resolves every configuration and submits the resulting
graph to GitHub, replacing the static one. Dependabot then sees
log4j-core 2.25.4 everywhere and auto-closes these false positives. It
also covers any future transitive declarations from plugin POMs.

Signed-off-by: Matteo Merli <mmerli@apache.org>
@merlimat merlimat force-pushed the dependabot-dependency-submission branch from 6fccfca to a2f431b Compare May 6, 2026 22:58
@merlimat merlimat merged commit 3937e2b into oxia-db:main May 6, 2026
2 checks passed
@merlimat merlimat deleted the dependabot-dependency-submission branch May 6, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant