Repository: google/go-github
File: github/secret_scanning.go (Go)

Code before:
	Number                                     *int        `json:"number,omitempty"`
	CreatedAt                                  *Timestamp  `json:"created_at,omitempty"`
	URL                                        *string     `json:"url,omitempty"`
	HTMLURL                                    *string     `json:"html_url,omitempty"`
	LocationsURL                               *string     `json:"locations_url,omitempty"`
	State                                      *string     `json:"state,omitempty"`
	Resolution                                 *string     `json:"resolution,omitempty"`
	ResolvedAt                                 *Timestamp  `json:"resolved_at,omitempty"`
	ResolvedBy                                 *User       `json:"resolved_by,omitempty"`
	SecretType                                 *string     `json:"secret_type,omitempty"`
	SecretTypeDisplayName                      *string     `json:"secret_type_display_name,omitempty"`
	Secret                                     *string     `json:"secret,omitempty"`
	Repository                                 *Repository `json:"repository,omitempty"`
	UpdatedAt                                  *Timestamp  `json:"updated_at,omitempty"`
	Base64Encoded                              *bool       `json:"is_base64_encoded"`
	MultiRepo                                  *bool       `json:"multi_repo"`
	PubliclyLeaked                             *bool       `json:"publicly_leaked"`
	PushProtectionBypassed                     *bool       `json:"push_protection_bypassed,omitempty"`
	PushProtectionBypassedBy                   *User       `json:"push_protection_bypassed_by,omitempty"`
	PushProtectionBypassedAt                   *Timestamp  `json:"push_protection_bypassed_at,omitempty"`
	ResolutionComment                          *string     `json:"resolution_comment,omitempty"`
	PushProtectionBypassRequestComment         *string     `json:"push_protection_bypass_request_comment"`
	PushProtectionBypassRequestHtmlUrl         *string     `json:"push_protection_bypass_request_html_url"`
	PushProtectionBypassRequestReviewer        *User       `json:"push_protection_bypass_request_reviewer"`
	PushProtectionBypassRequestReviewerComment *string     `json:"push_protection_bypass_request_reviewer_comment"`
	Validity                                   *string     `json:"validity"`
}

// SecretScanningAlertLocation represents the location for a secret scanning alert.
type SecretScanningAlertLocation struct {
	Type    *string                             `json:"type,omitempty"`
	Details *SecretScanningAlertLocationDetails `json:"details,omitempty"`
}

// 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"`
	PullRequestCommentURL *string `json:"pull_request_comment_url,omitempty"`
}

// SecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method.
type SecretScanningAlertListOptions struct {
	// State of the secret scanning alerts to list. Set to open or resolved to only list secret scanning alerts in a specific state.

Review comment (suggestion):
```suggestion
	PushProtectionBypassRequestComment         *string     `json:"push_protection_bypass_request_comment,omitempty"`
	PushProtectionBypassRequestHTMLURL         *string     `json:"push_protection_bypass_request_html_url,omitempty"`
	PushProtectionBypassRequestReviewer        *User       `json:"push_protection_bypass_request_reviewer,omitempty"`
	PushProtectionBypassRequestReviewerComment *string     `json:"push_protection_bypass_request_reviewer_comment,omitempty"`
	Validity                                   *string     `json:"validity,omitempty"`
```

Code after:
	Number                                     *int        `json:"number,omitempty"`
	CreatedAt                                  *Timestamp  `json:"created_at,omitempty"`
	URL                                        *string     `json:"url,omitempty"`
	HTMLURL                                    *string     `json:"html_url,omitempty"`
	LocationsURL                               *string     `json:"locations_url,omitempty"`
	State                                      *string     `json:"state,omitempty"`
	Resolution                                 *string     `json:"resolution,omitempty"`
	ResolvedAt                                 *Timestamp  `json:"resolved_at,omitempty"`
	ResolvedBy                                 *User       `json:"resolved_by,omitempty"`
	SecretType                                 *string     `json:"secret_type,omitempty"`
	SecretTypeDisplayName                      *string     `json:"secret_type_display_name,omitempty"`
	Secret                                     *string     `json:"secret,omitempty"`
	Repository                                 *Repository `json:"repository,omitempty"`
	UpdatedAt                                  *Timestamp  `json:"updated_at,omitempty"`
	IsBase64Encoded                            *bool       `json:"is_base64_encoded,omitempty"`
	MultiRepo                                  *bool       `json:"multi_repo,omitempty"`
	PubliclyLeaked                             *bool       `json:"publicly_leaked,omitempty"`
	PushProtectionBypassed                     *bool       `json:"push_protection_bypassed,omitempty"`
	PushProtectionBypassedBy                   *User       `json:"push_protection_bypassed_by,omitempty"`
	PushProtectionBypassedAt                   *Timestamp  `json:"push_protection_bypassed_at,omitempty"`
	ResolutionComment                          *string     `json:"resolution_comment,omitempty"`
	PushProtectionBypassRequestComment         *string     `json:"push_protection_bypass_request_comment,omitempty"`
	PushProtectionBypassRequestHTMLURL         *string     `json:"push_protection_bypass_request_html_url,omitempty"`
	PushProtectionBypassRequestReviewer        *User       `json:"push_protection_bypass_request_reviewer,omitempty"`
	PushProtectionBypassRequestReviewerComment *string     `json:"push_protection_bypass_request_reviewer_comment,omitempty"`
	Validity                                   *string     `json:"validity,omitempty"`
}

// SecretScanningAlertLocation represents the location for a secret scanning alert.
type SecretScanningAlertLocation struct {
	Type    *string                             `json:"type,omitempty"`
	Details *SecretScanningAlertLocationDetails `json:"details,omitempty"`
}

// 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"`
	PullRequestCommentURL *string `json:"pull_request_comment_url,omitempty"`
}

// SecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method.
type SecretScanningAlertListOptions struct {
	// State of the secret scanning alerts to list. Set to open or resolved to only list secret scanning alerts in a specific state.