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

Code before:
import (
	"context"
	"fmt"
)

// SecretScanningService handles communication with the secret scanning related
// methods of the GitHub API.
type SecretScanningService service

// SecretScanningAlert represents a GitHub secret scanning alert.
type SecretScanningAlert struct {
	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"`

Review comment (suggestion):
```suggestion
	IsBase64Encoded                              *bool       `json:"is_base64_encoded,omitempty"`
```

Code after:
import (
	"context"
	"fmt"
)

// SecretScanningService handles communication with the secret scanning related
// methods of the GitHub API.
type SecretScanningService service

// SecretScanningAlert represents a GitHub secret scanning alert.
type SecretScanningAlert struct {
	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"`