View Source GitHub.DependencyGraph (GitHub REST API Client v0.0.8)

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

Link to this function

create_repository_snapshot(owner, repo, body, opts \\ [])

View Source
@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

resources

Resources

Link to this function

diff_range(owner, repo, basehead, opts \\ [])

View Source
@spec diff_range(String.t(), String.t(), String.t(), keyword()) ::
  {:ok, [map()]} | {:error, GitHub.Error.t()}

Get a diff of the dependencies between commits

options

Options

  • name (String.t()): The full path, relative to the repository root, of the dependency manifest file.

resources

Resources

Link to this function

export_sbom(owner, repo, opts \\ [])

View Source
@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.

resources

Resources