Skip to content

Commit

Permalink
Add missing secret scanning alert fields (google#2930)
Browse files Browse the repository at this point in the history
Fixes: google#2929.
  • Loading branch information
vandanrohatgi authored and gmlewis committed Sep 18, 2023
1 parent aa431d9 commit c8a58d7
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 13 deletions.
40 changes: 40 additions & 0 deletions github/github-accessors.go

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

47 changes: 47 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.

31 changes: 18 additions & 13 deletions github/secret_scanning.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,24 @@ 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"`
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"`
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"`
}

// SecretScanningAlertLocation represents the location for a secret scanning alert.
Expand Down

0 comments on commit c8a58d7

Please sign in to comment.