jenkins node security scanner code example
Example: snykSecurity(tokenCredentialId: 'SNYK_TOKEN', failOnBuild: true, test --docker
docker run -it
-e "SNYK_TOKEN=<TOKEN>"
-e "USER_ID=1234"
-e "MONITOR=true"
-v "<PROJECT_DIRECTORY>:/project"
-v "/var/run/docker.sock:/var/run/docker.sock"
snyk/snyk-cli:docker test --docker myapp:mytag --file=<DOCKERFILE>