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.