No project description provided
Project description
snyk-threadfix
The ThreadFix / Snyk integration allows you to view open source vulnerabilities identified by Snyk on the ThreadFix platform and direct you to comprehensive information and remediation guidance.
snyk-threadfix
allows you to generate a .threadfix
file from Snyk project data. It outputs JSON data in the ThreadFix file format - printing to standard out or a specified filename. It does not upload directly to ThreadFix at present but there is a ThreadFix API endpoint that you can use: ThreadFix Upload Scan API.
Installation
pip install snyk-threadfix
Configuration
You must first obtain a Snyk API token from your Snyk account. Once you have a token you must either install the Snyk CLI and run snyk auth <your-token>
or simply run:
export SNYK_TOKEN=<your-token>
Usage
You must first identify your Snyk org ID. This is easy - simply log into your Snyk account, click on Settings, and find your Organization ID there. If you have multiple orgs in your Snyk account, make sure to first choose the one you want.
You must also identify the Snyk project ID's for which you would like to generate ThreadFix data. You can do this using the Snyk API, for example, using the List all projects endpoint. See also the pysnyk SDK. Another way of identifying the project IDs you want to use is simply by browsing to the desired project(s) with the Snyk UI and grabbing the UUID from the address bar of your browser.
Once you have a project ID or list of project IDs that you would like to generate a threadfix file for, run the following:
For a single project ID:
snyk-threadfix --org-id=<your-snyk-org-id> --project-ids=<snyk-project-id>
For multiple IDs:
snyk-threadfix --org-id=<your-snyk-org-id> --project-ids=<snyk-project-id-0>,<snyk-project-id-1>,<snyk-project-id-2>,...
ThreadFix JSON data will be output to standard out. If you would like to save the JSON to a file you can either pipe it to a file or use the --output
parameter, for example:
snyk-threadfix --output=<your-desired-output-filename>.threadfix --org-id=<your-snyk-org-id> --project-ids=<snyk-project-id>
Additional input parameters are available:
snyk-threadfix --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file snyk-threadfix-0.0.4.tar.gz
.
File metadata
- Download URL: snyk-threadfix-0.0.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b1 CPython/3.7.4 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae76ba47a3620db455b940514dbfdf6a957a31ce5df0fcdac8f9b4dbefaa951 |
|
MD5 | 385a257f3bb828cf983b858d67bb3a4d |
|
BLAKE2b-256 | 399119ebe14d69db873e8ad67d096ebf8c1e2d994bfba3c3020abddd0de7675c |
File details
Details for the file snyk_threadfix-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: snyk_threadfix-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b1 CPython/3.7.4 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f4108ef47dcfb59395481d032184d6b2810e43056d63f70d7dcb82b08ed85b |
|
MD5 | 1b5e293b2daa45839f9ab67b35e2347d |
|
BLAKE2b-256 | acdb22805edf644b14cb29c044de88cff16c9eb6df57f58ce3940b9f003bc77a |