What do you think if gm verifies the checksum of gradle/wrapper/gradle-wrapper.jar file?
Of course, it won't make the build completely secure (e.g. a malicious repository could augment gradlew to use a different jar for classpath), however it might improve things since text files (e.g. build scripts, batch scripts are easier to review than binary jars).
An alternative (or additional) option is to verify the integrity of gradlew and gradlew.bat (e.g. hard-code well-known good checksums)
An alternative option is to use gw-controlled set of gradlew executables (and gradle-wrapper.jar) so gw uses a trusted wrapper.
What do you think if
gmverifies the checksum ofgradle/wrapper/gradle-wrapper.jarfile?Of course, it won't make the build completely secure (e.g. a malicious repository could augment
gradlewto use a different jar for classpath), however it might improve things since text files (e.g. build scripts, batch scripts are easier to review than binary jars).An alternative (or additional) option is to verify the integrity of
gradlewandgradlew.bat(e.g. hard-code well-known good checksums)An alternative option is to use
gw-controlled set ofgradlewexecutables (andgradle-wrapper.jar) sogwuses a trusted wrapper.