Skip to content

Commit

Permalink
feat(secret scanning): Support pull_request_comment_url (#3344)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisallenlane authored Nov 6, 2024
1 parent 78ac52d commit 1f5fe3c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions github/secret_scanning.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ type SecretScanningAlertLocation struct {

// SecretScanningAlertLocationDetails represents the location details for a secret scanning alert.
type SecretScanningAlertLocationDetails struct {
Path *string `json:"path,omitempty"`
Startline *int `json:"start_line,omitempty"`
EndLine *int `json:"end_line,omitempty"`
StartColumn *int `json:"start_column,omitempty"`
EndColumn *int `json:"end_column,omitempty"`
BlobSHA *string `json:"blob_sha,omitempty"`
BlobURL *string `json:"blob_url,omitempty"`
CommitSHA *string `json:"commit_sha,omitempty"`
CommitURL *string `json:"commit_url,omitempty"`
Path *string `json:"path,omitempty"`
Startline *int `json:"start_line,omitempty"`
EndLine *int `json:"end_line,omitempty"`
StartColumn *int `json:"start_column,omitempty"`
EndColumn *int `json:"end_column,omitempty"`
BlobSHA *string `json:"blob_sha,omitempty"`
BlobURL *string `json:"blob_url,omitempty"`
CommitSHA *string `json:"commit_sha,omitempty"`
CommitURL *string `json:"commit_url,omitempty"`
PullRequestCommentURL *string `json:"pull_request_comment_url,omitempty"`
}

// SecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method.
Expand Down

0 comments on commit 1f5fe3c

Please sign in to comment.