CircleCI
Snyk integrates with CircleCI using a Snyk Orb, seamlessly scanning your application dependencies and Docker images for open source security vulnerabilities as part of the continuous integration/continuous delivery (CI/CD) workflow.
CircleCI enables users to easily create CI/CD workflows using a group of ready-to-use commands (Orbs) that can be added to your configuration file.
With the Snyk Orb, you can quickly add Snyk scanning to your CI/CD in order to test and monitor for open source vulnerabilities, based on your configurations. Results are then displayed from the CircleCI output view and can also be monitored on Snyk.io.
Refer to the following information about the Snyk Orb to get started with CircleCI, from implementation to a green build with Snyk.
- Snyk Circle CI README - includes all the information that you need to set up your CI/CD with Snyk including a list of parameters and samples
- Adding application and image scans to your CI/CD pipeline (Circle CI blog post) - discusses how to set up a secure pipeline with the Snyk Orb
Once you add a project to CircleCI and add the Snyk Orb to the configuration file, every time that a build runs, the Snyk Orb is also used and performs the following actions:
- 1.Scans app dependencies or container images for vulnerabilities or open source license issues, and lists the vulnerabilities and issues.
- 2.If Snyk finds vulnerabilities, it does one of the following (based on your configuration):
- Fails the build
- Lets the build complete
Optionally, if the build completes successfully and MONITOR is set to True in the Snyk step, then Snyk saves a snapshot of the project dependencies from the Snyk Web UI. From the Snyk Web UI you can view the dependency tree displaying all of the issues, and you can receive alerts for new issues found in the existing app version.
- 1.Create a Snyk account and retrieve the Snyk API token from your Account settings.
- 2.Import the relevant repo into CircleCI.
- 3.Go to
Settings -> Security -> Orb security settings
and make sure you allowopt-in to third party Orbs
. - 4.Make sure your configuration (
config.yml
) file follows version 2.1. - 5.Add the required environment variables to CircleCI (including the Snyk API token as
SNYK_TOKEN
).
On the Orbs registry, CircleCI displays a list of available Orbs customized for you directly, similar to the image that follows.

Snyk Orb for CircleCI
In this list, find and click the relevant Snyk line to view the Snyk Orb information with examples, parameters, and values:
Be sure to use the latest version of the Snyk orb from the list.

Snyk Orb information
Last modified 5mo ago