Skip to main content

dependency_submission

Creates, updates, deletes, gets or lists a dependency_submission resource.

Overview

Namedependency_submission
TypeResource
Idgithub.dependency_graph.dependency_submission

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_repository_snapshotinsertowner, repo, detector, version, ref, sha, job, scannedCreate a new snapshot of a repository's dependencies.

The authenticated user must have access to the repository.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

INSERT examples

Create a new snapshot of a repository's dependencies.

The authenticated user must have access to the repository.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

INSERT INTO github.dependency_graph.dependency_submission (
version,
job,
sha,
ref,
detector,
metadata,
manifests,
scanned,
owner,
repo
)
SELECT
{{ version }} /* required */,
'{{ job }}' /* required */,
'{{ sha }}' /* required */,
'{{ ref }}' /* required */,
'{{ detector }}' /* required */,
'{{ metadata }}',
'{{ manifests }}',
'{{ scanned }}' /* required */,
'{{ owner }}',
'{{ repo }}'
RETURNING
id,
created_at,
message,
result
;