Skip to content

Commit 04573be

Browse files
authored
Add validity filter to secret scanning alert list options (#3516)
1 parent f88b6c8 commit 04573be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github/secret_scanning.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ type SecretScanningAlertListOptions struct {
6868
// Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
6969
Resolution string `url:"resolution,omitempty"`
7070

71+
// A comma-separated list of validities that, when present, will return alerts that match the validities in this list.
72+
// Valid options are active, inactive, and unknown.
73+
Validity string `url:"validity,omitempty"`
74+
7175
// The direction to sort the results by. Possible values are: asc, desc. Default: desc.
7276
Direction string `url:"direction,omitempty"`
7377

0 commit comments

Comments
 (0)