Skip to content

Commit

Permalink
Fix SecretScanning API by switching arguments from url to json
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Lewis <[email protected]>
  • Loading branch information
gmlewis committed Sep 19, 2023
1 parent 477e109 commit bad4743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github/secret_scanning.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bad4743

Please sign in to comment.