Dependency Scanning (SCA)

Use the REST API to query dependency scanning (SCA) metrics

Dependency Scanning (SCA)

Table of Contents

Introduction

The SCA API provides a RESTful interface for querying various metrics related to Dependency scanning findings and events. It offers endpoints to retrieve information about about SCA findings, events, and counts.

Get SCA Events

This endpoint returns the list of events that have occurred related to dependency vulnerabilities.

Event types:

  • new-branch-summary

  • new-finding new-findings

  • new-fix

  • new-fixes

  • new-allowlisted-finding

  • new-allowlisted-findings

  • new-pull-request-finding

  • new-pull-request-findings

  • new-pull-request-fix

  • new-pull-request-fixes

curl -L \
   -H "Accept: application/json" \
   -H "Authorization: Bearer <YOUR-TOKEN>" \
   https://api.nullify.ai/sca/events?githubOwnerId=1234&githubRepositoryId=5678

Get SCA Vulnerabilities

This endpoint returns the list of current vulnerabilities in dependencies.

curl -L \
   -H "Accept: application/json" \
   -H "Authorization: Bearer <YOUR-TOKEN>" \
   https://api.nullify.ai/sca/summary?githubOwnerId=1234&githubRepositoryId=5678

Get Counts Per Severity Level

This endpoint returns the count of vulnerabilities per severity level.

curl -L \
   -H "Accept: application/json" \
   -H "Authorization: Bearer <YOUR-TOKEN>" \
   https://api.nullify.ai/sca/events?githubOwnerId=1234&githubRepositoryId=5678

Last updated

© 2023 Nullify | All Rights Reserved.