View Source GitHub.DependencyGraph (GitHub REST API Client v0.2.2)
Provides API endpoints related to dependency graph
Link to this section Summary
Functions
Create a snapshot of dependencies for a repository
Get a diff of the dependencies between commits
Export a software bill of materials (SBOM) for a repository.
Link to this section Functions
@spec create_repository_snapshot( String.t(), String.t(), GitHub.Snapshot.t(), keyword() ) :: {:ok, map()} | {:error, GitHub.Error.t()}
Create a snapshot of dependencies for a repository
Create a new snapshot of a repository's dependencies. You must authenticate using an access token with the repo
scope to use this endpoint for a repository that the requesting user has access to.
resources
Resources
@spec diff_range(String.t(), String.t(), String.t(), keyword()) :: {:ok, [map()]} | {:error, GitHub.Error.t()}
Get a diff of the dependencies between commits
Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits.
options
Options
name
: The full path, relative to the repository root, of the dependency manifest file.
resources
Resources
@spec export_sbom(String.t(), String.t(), keyword()) :: {:ok, GitHub.DependencyGraph.SpdxSbom.t()} | {:error, GitHub.Error.t()}
Export a software bill of materials (SBOM) for a repository.
Exports the software bill of materials (SBOM) for a repository in SPDX JSON format.