feat: allow-environmental-validation-failure input to GA#1584
Draft
algomaster99 wants to merge 7 commits into
Draft
feat: allow-environmental-validation-failure input to GA#1584algomaster99 wants to merge 7 commits into
algomaster99 wants to merge 7 commits into
Conversation
algomaster99
commented
May 24, 2026
| "allowValidationFailure": false, | ||
| "allowPomValidationFailure": false, | ||
| "allowEnvironmentalValidationFailure": false, | ||
| "allowEnvironmentalValidationFailure": true, |
Member
Author
There was a problem hiding this comment.
Suggested change
| "allowEnvironmentalValidationFailure": true, | |
| "allowEnvironmentalValidationFailure": false, |
We will change this later when we change the default value to true.
f3d2187 to
f646f81
Compare
…on failure as warning The stored lockfile config had allowEnvironmentalValidationFailure=false, which caused CI to fail when the GitHub-hosted runner updated Maven between runs. Setting to true means the validate goal will warn instead of fail on environment mismatches (e.g. Maven 3.9.15 -> 3.9.16). Fixes #1583 https://claude.ai/code/session_01L6ga9Q2tGVvr2uhZ5gtGjV
8622110 to
3ef0955
Compare
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.
Fixes #1583
Summary
This PR adds a new optional input
allow-environmental-validation-failureto the Maven Lockfile GitHub Action, allowing environmental validation failures (such as Maven version changes between runner image updates) to produce warnings instead of failing the build.Key Changes
allow-environmental-validation-failure(default:false) with documentation referencing issue Disable environment check inmaven-lockfilevalidation workflow #1583ALLOW_ENV_VALIDATION_FAILUREenvironment variable-DallowEnvironmentalValidationFailure=truewhen enabledImplementation Details
The new input is passed through to the underlying Maven plugin's
allowEnvironmentalValidationFailureconfiguration parameter. When enabled, environmental validation failures (e.g., Maven version mismatches) will be logged as warnings rather than causing the build to fail, which is particularly useful for workflows using GitHub-hosted runners where the Maven version is not pinned and may change between runner image updates.https://claude.ai/code/session_01L6ga9Q2tGVvr2uhZ5gtGjV