Skip to content

Add Support for Secret Scanning Push Protection Bypasses & Scan History API Endpoints #3686

@Not-Dhananjay-Mishra

Description

@Not-Dhananjay-Mishra

Description

There are two Secret Scanning endpoints available in the GitHub REST API which in my opinion aren't present in the go-github

  • Creates a bypass for a previously push protected secret.
    POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses

  • Retrieves scan history of a repository.
    GET /repos/{owner}/{repo}/secret-scanning/scan-history

These endpoints would be helpful for directly checking past secret scanning findings and managing push protection bypasses.

References:

https://docs.github.com/en/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#create-a-push-protection-bypass
https://docs.github.com/en/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#get-secret-scanning-scan-history-for-a-repository

I will be happy to contribute to the implementation of these Secret Scanning endpoints.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions