gradle-plugin
gradle-plugin copied to clipboard
Running `snyk code test`?
Hello 👋
Is there a way to configure the plugin to run equivalent of snyk code test
which is the command for scanning the code under development rather than its depencencies?
So far we've achieved this by adding a handcrafted task, but we think it's more hack than a solution.
tasks.register('snyk-code-test', Exec) {
dependsOn ':snyk-check-binary'
workingDir rootProject.projectDir
commandLine 'snyk', 'code', 'test'
}
Thank you in advance, Ves