diff --git a/github/secret_scanning.go b/github/secret_scanning.go index bea3f0e701f..ef82f58b1a9 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.