Skip to content

Fix(deps): Bump maven-build-action to v0.5.2 - #135

Merged
askb merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/maven-build-action-v0.5.2
Oct 8, 2026
Merged

askb merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/maven-build-action-v0.5.2

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member

Summary

Moves both scan lanes from maven-build-action v0.4.3 to v0.5.2, pinned to the release commit 01a3700e rather than the annotated tag object.

Why

v0.4.3 ran s4u/setup-maven-action after its own setup-java. s4u installs a JDK of its own (Zulu by default), and v0.4.3 never passed distribution through. So every Maven build in sonatype-lifecycle and sonarqube-cloud ran on Zulu, whatever java_distribution asked for, and both lanes default that input to temurin. maven-build-action#166 fixed this in v0.5.2.

Behaviour change

  • Maven builds in both lanes run on the distribution java_distribution names, by default Temurin rather than Zulu, at the same Java major version.
  • v0.5.1 rejects altDeploymentRepository and its snapshot and release variants in mvn-params/mvn-opts. I read every caller workflow (97 calls across ONAP and OpenDaylight); none passes them, and the scan lanes don't deploy.
  • The action's input names and defaults are identical between v0.4.3 and v0.5.2.

Dependabot's seven-day cooldown would offer this around 2026-10-09. It's taken by hand now so v0.9.3 can carry the fix.

Validation

Both scan lanes pin maven-build-action v0.4.3, which ran
s4u/setup-maven-action after its own setup-java. s4u installs a JDK of
its own, Zulu by default, and v0.4.3 never passed 'distribution'
through, so every Maven build in either lane ran on Zulu whatever
java_distribution asked for. The lanes default that input to
'temurin', so the default was never honoured either.

v0.5.2 installs Maven with stCarolas/setup-maven and leaves the JDK
to the requested distribution. Builds keep the same Java major
version, now from the distribution java_distribution names. The
action's inputs and defaults are unchanged between the two releases.

v0.5.1 also rejects altDeploymentRepository and its snapshot and
release variants in mvn-params and mvn-opts. No caller of either lane
passes them; the scan lanes do not deploy.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions requested review from a team and a balanced review from Copilot October 7, 2026 23:32
@github-actions github-actions Bot added the bug Something isn't working label Oct 7, 2026

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

Both pins match the intended release commit, with compatible inputs and no identified blocking issues.

0 open findings

What changed in this PR

Updates the Maven build dependency in both security scan workflows so builds honor java_distribution, defaulting to Temurin rather than Zulu.

Changes:

  • Upgrades maven-build-action from v0.4.3 to v0.5.2.
  • Pins both callers to the release commit without changing workflow inputs.
File Description
.github/​workflows/​sonatype-lifecycle.yaml Updates the Maven action pin for Lifecycle scans.
.github/​workflows/​sonarqube-cloud.yaml Updates the Maven action pin for SonarCloud scans.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@askb
askb merged commit 4141762 into lfreleng-actions:main Oct 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants