Skip to main content

Overview

This is a guide for setting up and using Snyk's APIs to generate scan report JSON files for upload to the Root platform. The guide is divided into three main steps:

  1. Snyk Service Account and API Setup: This section details locating your Snyk Organization ID, creating a service account, and generating an API token. These credentials are necessary to authenticate Snyk API requests.

  2. Snyk Environment Variables Configuration: You will learn how to create a shell script to set environment variables for your Snyk Organization ID and API token.

  3. Snyk Scan Report Generation: This final section explains how to list all Snyk-scanned images and generate detailed scan reports for specific container images. It includes the necessary shell scripts (snyk-list.sh and snyk-report.sh) and their respective functionalities.