Walkthrough: Initiate a scan locally
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
These pages explain how you can try a few scans to see the results.
Snyk has a number of tools and processes that help secure your entire software development lifecycle. With Snyk, you can validate your code while you are coding. You can also monitor code when you are not working on it. Snyk also provides visibility into issues across your Projects with a Git repository integration and can work with your CI/CD through integrations, the CLI, or curated containers. It is common practice to integrate Snyk into several points of your development process for enabling your developers, for visibility, and for gating your applications.
If this is your first time performing a scan, or you are interested in the results for a single application while you are working on it, scanning in your local environment is a great place to start, and that is covered in this guide.
If you have a set of applications you are responsible for, as an individual or a team, Snyk recommends configuring the Git repository integration to start getting visibility for the issues in your repositories in a few clicks.
The tool or tools that best serve your tech stack, environment, and workflow depend on your individual circumstances. See the language pages for more information.
To learn more about choosing the integration points in the software development lifecycle that work best for you and your current level of security maturity, see the Ways to integrate Snyk at your company course.
To perform code scanning, ensure you enable Snyk Code. For details, see Snyk Code deployment.
This guide explains how to test a sample or single Project in your local development environment or by using the Snyk CLI.
The Snyk free plan provides limited free tests per month. For unlimited tests, consider a paid plan.
You need a Snyk account to use Snyk functionality, even within your local environment. Create a free account to try out a Project. If your Organization is already using Snyk, you may be able to log in using single sign-on to be provisioned with a Snyk account. For more information, see Getting started.
To scan a single Project in your local development environment, you must use a Snyk plugin or extension with your IDE. You must also authenticate the plugin or extension with your Snyk account, as demonstrated in this video.
When authenticating the IDE, you may see a warning about scanning folders you trust. Because Snyk is executing code, such as invoking the package manager to get dependency information, you must trust the folder you are scanning to continue.
A scan with the Snyk IDE plugin or extension in a local Project provides information about open-source package issues, including fix advice.
Scanning with the Snyk IDE plugin or extension in a local Project also provides information about code issues, including example fixes.
Some package managers rely on context from the local environment, so testing in the local environment or as part of the CI/CD pipeline provides the most accurate results.
First, install the Snyk CLI. After installation, you must authenticate it to your Snyk account, as demonstrated in this video.
A scan with Snyk test provides information about open-source package issues, including fix advice, as demonstrated in this video.
A scan with Snyk code test runs a Static Code Analysis test on the code in that Project, and returns the list of detected vulnerability issues, general information about the test, and a summary of the test findings.
A scan with Snyk container test returns a list of vulnerabilities in the container image, along with recommendations for upgrading the base image to one that is more secure.
A scan with Snyk iac test returns advice on how to resolve discovered issues in your infrastructure as code files.
If you have a small team looking for guidance on rolling out Snyk within your processes, see the Team implementation guide.
To get specific recommendations for your tech stack, see the pages specific to your language.
If you decide you want to expand the use of Snyk throughout your business and involve more teams in Snyk, read the Enterprise implementation guide.