provider dependency-graph GET
/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid} @utdk/github
/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid} Fetch a software bill of materials (SBOM) for a repository.
Fetches a previously generated software bill of materials (SBOM) for a repository.
When the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format.
The generated SBOM report may be retained for up to one week from the original request.
The temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
- owner path required
- The account owner of the repository. The name is not case sensitive.
- string
- repo path required
- The name of the repository without the `.git` extension. The name is not case sensitive.
- string
- sbom_uuid path required
- The unique identifier of the SBOM export.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.dependencyGraph.fetchSbomReport()