You can specify a non-standard file name for a project by adding options to the snyk test
command:
--file=<file name>
and
--package-manager=<package manager>
The options for --package manager
are as follows:
- RubyGems (Bundler):
rubygems
- npm:
npm
- Yarn:
yarn
- Maven:
maven
- pip:
pip
- sbt:
sbt
- Gradle:
gradle
- dep (Go):
golangdep
- Go Modules:
gomodules
- govendor:
govendor
- NuGet:
nuget
- Paket:
paket
- Composer:
composer
- CocoaPods:
cocoapods
- Poetry:
poetry
- Hex:
hex
Example:
snyk test --file=requirements_dev.txt --package-manager=pip