gradle-plugin icon indicating copy to clipboard operation
gradle-plugin copied to clipboard

Running `snyk code test`?

Open vnickolov opened this issue 2 years ago • 1 comments

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

vnickolov avatar Aug 31 '22 14:08 vnickolov