Configure your CI for different languages as follows.
Install the Snyk utility using
npm install -g snyk
.Run #
snyk wizard
in the directory of your project following the prompts which will also generate a.snyk
policy file.Ensure the
.snyk
file you generated was added to your source control (git add .snyk
).If you selected to, Snyk will include
snyk test
as part of yournpm test
command, so if there are new vulnerabilities in the future, your CI will fail, protecting you from introducing vulnerabilities to production. Alternatively, you can addsnyk test
to any other CI test platform you use.Configure your CI environment to include the
SNYK_TOKEN
environment variable. You can find your API token in your account settings on snyk.io
Install the Snyk utility using
npm install -g snyk
.Add
snyk test
to your CI test platform.Configure your environment to include the
SNYK_TOKEN
environment variable. You can find your API token in your account settings on snyk.io.
Install the Snyk utility using
npm install -g snyk
.Install the sbt-dependency-graph plugin.
Add
snyk test
to your CI test platform.