Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 671 Bytes

get-gh-repos.md

File metadata and controls

24 lines (16 loc) · 671 Bytes

How can customer pull list of all repos imported to Snyk?

Description:

How can customer pull list of all repos imported to Snyk?

Instructions

get a list of all repos in a github integration

All the steps and commands are listed at the bottom of above link.

Option 2 > using curl and jq in CLI

You can use below Command on your terminal to get the list of repos.

curl -s \
   --header "Content-Type: application/json" \
   --header "Authorization: APITOKEN" \
 'https://snyk.io/api/v1/org/OrgId/projects' | jq '.projects'
| jq '.projects[].name'