Create a push protection bypass
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.
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.
Request Body required
Section titled “ Request Body required ”object
The reason for bypassing push protection.
The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
Examples
{ "reason": "will_fix_later", "placeholder_id": "2k4dM4tseyC5lPIsjl5emX9sPNk"}Responses
Section titled “ Responses ”Response
object
The reason for bypassing push protection.
The time that the bypass will expire in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The token type this bypass is for.
Examples
{ "reason": "will_fix_later", "expire_at": "2020-11-06T18:18:30Z", "token_type": "mailchimp_api_key"}User does not have enough permissions to perform this action.
Placeholder ID not found, or push protection is disabled on this repository.
Bad request, input data missing or incorrect.
Service unavailable
object
Example generated
{ "code": "example", "message": "example", "documentation_url": "example"}