Skip to main content

No project description provided

Project description

snyk-threadfix

This tool allows you to generate .threadfix file data from Snyk project data. It outputs JSON data in the ThreadFix file format - both printing to standard out and also allowing you to specify an output filename.

It does not upload directly to ThreadFix at this time. However:

  1. We will likely do that in the future given sufficient demand
  2. There is a ThreadFix API endpoint that you can use for this: 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. Snyk Org ID

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. Snyk Project ID

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 --orgId=<your-snyk-org-id> --projectIds=<snyk-project-id>

For multiple IDs:

snyk-threadfix --orgId=<your-snyk-org-id> --projectIds=<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 --orgId=<your-snyk-org-id> --projectIds=<snyk-project-id>

Additional input parameters are available:

snyk-threadfix main.py --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

snyk-threadfix-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snyk_threadfix-0.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file snyk-threadfix-0.0.3.tar.gz.

File metadata

  • Download URL: snyk-threadfix-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b1 CPython/3.7.4 Darwin/18.2.0

File hashes

Hashes for snyk-threadfix-0.0.3.tar.gz
Algorithm Hash digest
SHA256 14e4a12bea523c4a91d578ca89303955adf114486461224ef7d390ccdc839716
MD5 a831f483693818c1d446451011086b79
BLAKE2b-256 6d524ae8faa09c41ae42287b18926eddf2dd353bf68710f734880c5f88f7ac16

See more details on using hashes here.

File details

Details for the file snyk_threadfix-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: snyk_threadfix-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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

Hashes for snyk_threadfix-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0eecf0f99b68e8b64321da33f2c06b3373989468f7d8695fea825ce2e313a3
MD5 0785a46a57d12f64288aeb17306ab614
BLAKE2b-256 e4d7780f011a7b23cdd2d5b39d1d6dc0252ff8b63a8233a028d0268f9ca4fda2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page