Use this script to find all your Snyk projects that are affected by a certain vuln
- Get the list of all organization IDs
- Aggregate the paginated results
- Slice the list of organizations into groups
- For each group of organizations
- For each CVE
- Get the list of issues using the reporting API
- For each issue, extract the “projects” elements of the response to create links to the affected manifests
- For each CVE
- Since branch name is needed for a direct SCM link, we need to get all projects using and extract the remoteRepoUrl and Branch
- Dedup results
- Convert list to CSV