From bad4743a8f59b6b2085598e855f160957b157b8f Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Mon, 18 Sep 2023 20:46:43 -0400 Subject: [PATCH] Fix SecretScanning API by switching arguments from url to json Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- github/secret_scanning.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github/secret_scanning.go b/github/secret_scanning.go index bea3f0e701..ef82f58b1a 100644 --- a/github/secret_scanning.go +++ b/github/secret_scanning.go @@ -82,14 +82,14 @@ type SecretScanningAlertListOptions struct { type SecretScanningAlertUpdateOptions struct { // Required. Sets the state of the secret scanning alert. Can be either open or resolved. // You must provide resolution when you set the state to resolved. - State *string `url:"state,omitempty"` + State *string `json:"state,omitempty"` // A comma-separated list of secret types to return. By default all secret types are returned. - SecretType *string `url:"secret_type,omitempty"` + SecretType *string `json:"secret_type,omitempty"` // Required when the state is resolved. The reason for resolving the alert. Can be one of false_positive, // wont_fix, revoked, or used_in_tests. - Resolution *string `url:"resolution,omitempty"` + Resolution *string `json:"resolution,omitempty"` } // Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.