You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically perform wrapper validation check in setup-gradle #12
Currently, we recommend that users configure a separate workflow running the wrapper-validation-action to verify that the Gradle wrapper jar is not corrupted.
Doing this automatically for any workflow using setup-gradle and dependency-submission would increase coverage of wrapper validation and reduce the complexity for users adopting Gradle with GitHub actions. The functionality already exists with the validate-wrappers parameter: this issue is about enabling this by default.
Reacted by Lukáš Moravec, Eliezer Graber, Nuh Koca, Konstantin Gribov, Henrik Huttunen, Matthew Haughton, WyldBill, Art Shendrik, Jared Burrows, Eric Haag and 8 more
Currently, we recommend that users configure a separate workflow running the wrapper-validation-action to verify that the Gradle wrapper jar is not corrupted.
I would recommend adding the Gradle wrapper validation check immediately after checkout in any workflow that may run a Gradle wrapper. This eliminates the risk of potentially running a bad wrapper at all in any workflow. For example:
I think the biggest thing blocking this from happening is that currently Gradle doesn't publish wrapper SHAs for SNAPSHOT releases. As such, projects like gradle/gradle can't use the verification action because it is regularly using pre-release builds to build Gradle.
changed the title [-]Automatically perform wrapper validation check[/-][+]Automatically perform wrapper validation check in `setup-gradle`[/+]on Feb 9, 2024
I think the biggest thing blocking this from happening is that currently Gradle doesn't publish wrapper SHAs for SNAPSHOT releases. As such, projects like gradle/gradle can't use the verification action because it is regularly using pre-release builds to build Gradle.
If they are still not published, this could easily be mitigated by introducing a switch to disable wrapper validation for SNAPSHOT versions or completely. However, having validation enabled by default would make everyone safer.
Activity
eygraber commentedon Nov 25, 2022
Is there any timeline on this happening?
erichaagdev commentedon Mar 13, 2023
I would recommend adding the Gradle wrapper validation check immediately after checkout in any workflow that may run a Gradle wrapper. This eliminates the risk of potentially running a bad wrapper at all in any workflow. For example:
JLLeitschuh commentedon Apr 4, 2023
I think the biggest thing blocking this from happening is that currently Gradle doesn't publish wrapper SHAs for SNAPSHOT releases. As such, projects like
gradle/gradlecan't use the verification action because it is regularly using pre-release builds to build Gradle.JLLeitschuh commentedon Feb 3, 2024
@bigdaz this looks like it may be possible now that Gradle publishes snapshot checksums, right?
[-]Automatically perform wrapper validation check[/-][+]Automatically perform wrapper validation check in `setup-gradle`[/+]leonard84 commentedon Mar 22, 2024
If they are still not published, this could easily be mitigated by introducing a switch to disable wrapper validation for SNAPSHOT versions or completely. However, having validation enabled by default would make everyone safer.
Enable wrapper validation by default
Enable wrapper validation by default
Enable wrapper validation by default
Enable wrapper validation by default
fixup! Bump gradle/actions from 3 to 4
Enable wrapper validation by default
fixup! Bump gradle/actions from 3 to 4
remove redundant Gradle wrapper validation
remove redundant Gradle wrapper validation
remove redundant Gradle wrapper validation