Skip to content

fix: disable maven cache in release workflow - #424

Open
mallendem wants to merge 1 commit into
mainfrom
fix/cache-poisoning-maven
Open

fix: disable maven cache in release workflow#424
mallendem wants to merge 1 commit into
mainfrom
fix/cache-poisoning-maven

Conversation

@mallendem

@mallendem mallendem commented Sep 10, 2026

Copy link
Copy Markdown

Summary

  • Removes cache: 'maven' from the actions/setup-java step in the maven-goal composite action, used by release workflows (pre-post-release.yml) as well as CI (test.yml).
  • Adds -Daether.checksumPolicy=fail to .mvn/maven.config as defense in depth.
  • Bumps actions/setup-java v4 -> v6 while touching this step.

Why

Cache poisoning attack vector: a poisoned Maven dependency cache could be pulled into release artifacts. Same fix already applied and merged in the sibling repo apm-agent-java: elastic/apm-agent-java#4414.

Test plan

  • CI (test.yml) passes without the Maven cache
  • pre-post-release.yml steps still function correctly without the cache

@mallendem
mallendem marked this pull request as ready for review September 10, 2026 16:28
@mallendem
mallendem requested a review from a team as a code owner September 10, 2026 16:28
Copilot AI lite review requested due to automatic review settings September 10, 2026 16:28
@mallendem
mallendem requested a review from a team as a code owner September 10, 2026 16:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Hardens Maven CI and release workflows against dependency-cache poisoning.

Changes:

  • Removes Maven caching from the shared workflow action.
  • Enforces checksum validation failures.
  • Updates actions/setup-java to v6.
File summaries
File Summary
.mvn/maven.config Enforces checksum validation failures.
.github/workflows/maven-goal/action.yml Disables Maven caching and updates setup-java.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@mallendem
mallendem enabled auto-merge (squash) September 10, 2026 21:07
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.

3 participants