Export a software bill of materials (SBOM) for a repository.
Exports the software bill of materials (SBOM) for a repository in SPDX JSON format.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Response
A schema for the SPDX JSON format returned by the Dependency Graph.
object
object
The SPDX identifier for the SPDX document.
The version of the SPDX specification that this document conforms to.
An optional comment about the SPDX document.
object
The date and time the SPDX document was created.
The tools that were used to generate the SPDX document.
The name of the SPDX document.
The license under which the SPDX document is licensed.
The namespace for the SPDX document.
object
A unique SPDX identifier for the package.
The name of the package.
The version of the package. If the package does not have an exact version specified, a version range is given.
The location where the package can be downloaded, or NOASSERTION if this has not been determined.
Whether the package’s file content has been subjected to analysis during the creation of the SPDX document.
The license of the package as determined while creating the SPDX document.
The license of the package as declared by its author, or NOASSERTION if this information was not available when the SPDX document was created.
The distribution source of this package, or NOASSERTION if this was not determined.
The copyright holders of the package, and any dates present with those notices, if available.
object
The category of reference to an external resource this reference refers to.
A locator for the particular external resource this reference refers to.
The category of reference to an external resource this reference refers to.
object
The type of relationship between the two SPDX elements.
The SPDX identifier of the package that is the source of the relationship.
The SPDX identifier of the package that is the target of the relationship.
Examples
{ "sbom": { "SPDXID": "SPDXRef-DOCUMENT", "spdxVersion": "SPDX-2.3", "creationInfo": { "created": "2021-09-01T00:00:00Z", "creators": [ "Tool: GitHub.com-Dependency-Graph" ] }, "name": "github/example", "dataLicense": "CC0-1.0", "documentNamespace": "https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57", "packages": [ { "name": "rails", "SPDXID": "SPDXRef-Package", "versionInfo": "1.0.0", "downloadLocation": "NOASSERTION", "filesAnalyzed": false, "licenseConcluded": "MIT", "licenseDeclared": "MIT", "copyrightText": "Copyright (c) 1985 GitHub.com", "externalRefs": [ { "referenceCategory": "PACKAGE-MANAGER", "referenceType": "purl", "referenceLocator": "pkg:gem/rails@1.0.0" } ] }, { "name": "github/example", "SPDXID": "SPDXRef-Repository", "versionInfo": "main", "downloadLocation": "NOASSERTION", "filesAnalyzed": false, "externalRefs": [ { "referenceCategory": "PACKAGE-MANAGER", "referenceType": "purl", "referenceLocator": "pkg:github/example@main" } ] } ], "relationships": [ { "relationshipType": "DEPENDS_ON", "spdxElementId": "SPDXRef-Repository", "relatedSpdxElement": "SPDXRef-Package" }, { "relationshipType": "DESCRIBES", "spdxElementId": "SPDXRef-DOCUMENT", "relatedSpdxElement": "SPDXRef-Repository" } ] }}Headers
Section titled “ Headers ”Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}