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:
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.
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.
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
andsnyk-report.sh
) and their respective functionalities.