provider orgs POST /orgs/{org}/artifacts/metadata/storage-record
@utdk/github /orgs/{org}/artifacts/metadata/storage-record
Create artifact metadata storage record
Create metadata storage records for artifacts associated with an organization. This endpoint will create a new artifact storage record on behalf of any artifact matching the provided digest and associated with a repository owned by the organization.
org path required
The organization name. The name is not case sensitive.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

orgs.createArtifactStorageRecord
POST/orgs/{org}/artifacts/metadata/storage-record
Create metadata storage records for artifacts associated with an organization. This endpoint will create a new artifact storage record on behalf of any artifact matching the provided digest and associated with a repository owned by the organization.

Parameters

required

The organization name. The name is not case sensitive.

Input

required

The name of the artifact.

required

The digest of the artifact (algorithm:hex-encoded-digest).

The artifact version.

The URL where the artifact is stored.

The path of the artifact.

required

The base URL of the artifact registry.

The repository name within the registry.

The status of the artifact (e.g., active, inactive).

The name of the GitHub repository associated with the artifact. This should be used when there are no provenance attestations available for the artifact. The repository must belong to the organization specified in the path parameter. If a provenance attestation is available for the artifact, the API will use the repository information from the attestation instead of this parameter.

If true, the endpoint will return the created record in the response body.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.orgs.createArtifactStorageRecord({
  "status": "active",
  "return_records": true
})