Azure - Flow and Tech

Flow

  1. Fetch the monitored projects from Snyk (if the skipSnykMonitoredRepos flag was not set and the SNYK_TOKEN was exported).

  2. Fetch one/some/all the projects that the credentials have access to from SCM and create a projects list.

  3. Fetch one/all repos under the fetched/provided Projects.

  4. Remove the repos that are not monitored by Snyk (if the skipSnykMonitoredRepos flag was not set and the SNYK_TOKEN was exported) and create a Repo list.

  5. Create an import file for unmonitored repos to use for easily importing repos into your Snyk account (if the importConfDir flag was set).

  6. Fetch the commits for the fetched/provided repo/s and create a Contributors list.

  7. Count the commits for the repo/s by the contributors.

  8. Remove the contributors that were specified in the exclusion file (if the exclusionFilePath flag was set and a valid path to a text file was provided).

  9. Print the results.

Azure API endpoints used

  • To get the Projects from Azure: {Org}/_apis/projects

  • To get the list of the repo/s that correlate with the fetched/provided project list: {Project}/_apis/git/repositories

  • To get the commits for the fetched/provided repo/s list:{Project}/_apis/git/repositories/{Repo}/commits?$searchCriteria.fromDate={ThreeMonthsDate}

Last updated

More information

Snyk privacy policy

© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.