Skip to main content

repo_push_protection_bypasses

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

Overview

Namerepo_push_protection_bypasses
TypeResource
Idgithub.secret_scanning.repo_push_protection_bypasses

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_push_protection_bypassinsertowner, repo, reason, placeholder_idCreates a bypass for a previously push protected secret.

The authenticated user must be the original author of the committed secret.

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

Creates a bypass for a previously push protected secret.

The authenticated user must be the original author of the committed secret.

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

INSERT INTO github.secret_scanning.repo_push_protection_bypasses (
reason,
placeholder_id,
owner,
repo
)
SELECT
'{{ reason }}' /* required */,
'{{ placeholder_id }}' /* required */,
'{{ owner }}',
'{{ repo }}'
RETURNING
expire_at,
reason,
token_type
;