Why does the task use the java toolchain and not the Gradle daemon JVM by default?
Gradle 9+ requires a JVM 17, but it is still common to target java 8 via toolchain. The current logic fails with this setup, because the sigstore task requires a JVM 11+.
While you can easily fix it, IMHO the tasks should use the Gradle daemon instead by default and not the java toolchain. The java toolchain is for compiling java code, while the daemon JVM is mostly for running Gradle tasks.
// launcherFor {} uses the JVM of the Gradle daemon
tasks.withType<SigstoreSignFilesTask>().configureEach {
launcher.set(serviceOf<JavaToolchainService>().launcherFor { })
}