Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.8 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.8 KB

Snyk logo

snyk-oss-category

snyk-deps-to-csv

collects all dependencies from all orgs in a group and outputs to a CSV file snyk-deps_<timestamp>.csv, see an example here.

To process all Snyk orgs in a group, ensure your token has group level permission. If the token in use only has access to specific orgs in the group, only the data from those orgs will be retrieved.

Please try to avoid running for all dependencies against your snyk group(s) more than 1x or 2x per day.

To run

install with npm install

build with npm run build

Get all dependencies from all orgs in the specified group

node dist/index.js --token=$SNYK_TOKEN --group-id=$SNYK_GROUP

Filter by 1 or more dependencies from all orgs in the specified group

node dist/index.js --token=$SNYK_TOKEN --group-id=$SNYK_GROUP \
     --dependency-list="[email protected],[email protected]"

Filter by dependencies file from all orgs in the specified group (*nix example)

Log4Shell:

node dist/index.js --token=$SNYK_TOKEN --group-id=$SNYK_GROUP \
     --dependency-list="$(cat example-deps-files/log4j-core_deps.txt | xargs | sed -e 's/ /,/g')"

Spring4Shell:

node dist/index.js --token=$SNYK_TOKEN --group-id=$SNYK_GROUP \
     --dependency-list="$(cat example-deps-files/spring4shell_deps.txt | xargs | sed -e 's/ /,/g')"

Contributing

contributions are welcomed for this project, following the contribution guidelines

Issues

for any issues or questions, please submit a github issue

License

License: Apache License, Version 2.0