Start scanning
How to scan your code with Snyk manually and automatically using the Snyk CLI, Web UI, API, and PR Checks
You can use Snyk to scan your code manually and automatically using the Snyk CLI, the Snyk Web UI, the Snyk API, and by running PR Checks.
Auto scanning
✔️
✔️
✔️
✔️
Manual scanning
✔️
✔️
✔️
➖
Local scans
➖
✔️
➖
➖
Incorporate into continuous integration/continuous delivery (CI/CD) pipelines
➖
✔️
➖
➖
Obtain results precisely reflecting the Project vulnerabilities and configurations
✔️
✔️
✔️
✔️
Scan using the CLI
Use the following Snyk CLI commands for specific scanning methods:
Scan for hard-coded secrets, credentials, and API keys
Continually monitor a Project for new vulnerabilities
Scan using the Web UI
A scan runs when you import a Snyk Project or click Retest now on a Project. To import a Project, visit Import a Project to scan and identify issues. Snyk then automatically runs periodic scans on the imported Project to check whether your code is affected by newly disclosed vulnerabilities.
The default scanning frequency and available frequencies vary depending on the type of Project. For more information, see Usage settings.
You can also set the frequency in the Project Settings (visit View and edit Project settings) or use the API endpoint Updates project by project ID.
Scan using the API
The Snyk API offers a set of endpoints to test your code. Each call to the test endpoint counts as a scan.
For more information, visit the API Test endpoint documentation.
Using PR Checks
Snyk can scan every new pull request (PR) submitted on your monitored repositories to help prevent new vulnerabilities from being added to your codebase.
For more information, visit Pull Request Checks.
Last updated
Was this helpful?

