Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 897 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 897 Bytes

Generate .snyk File from API Response

This Python script fetches data from the Snyk API and generates a .snyk file with specific fields.

Prerequisites

  • Python 3.x
  • requests library (pip install requests)

Getting Started

  1. Clone the repository or download the snyk_file_generate.py file.

  2. Install the required dependencies using the following command:

pip install requests
  1. Replace the placeholders in the code:
  • [org_id] with your Snyk organization ID
  • [project_id] with your Snyk project ID
  • [token] with your Snyk API token
  1. Run the script:
python script.py
  1. The script will make an API request to retrieve the initial text from the Snyk API and generate a .snyk file with the relevant information.

  2. Once the script execution is complete, you will see a message indicating the successful generation of the .snyk file.