From c65a23474e22b4aa2283c7a02a755b8e7cd85597 Mon Sep 17 00:00:00 2001 From: Andreas Jaggi Date: Sat, 15 Mar 2025 10:58:48 +0100 Subject: [PATCH] Add validity filter to secret scanning alert list options --- github/secret_scanning.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github/secret_scanning.go b/github/secret_scanning.go index 35322cf6625..4eeeba3df78 100644 --- a/github/secret_scanning.go +++ b/github/secret_scanning.go @@ -68,6 +68,10 @@ type SecretScanningAlertListOptions struct { // Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests. Resolution string `url:"resolution,omitempty"` + // A comma-separated list of validities that, when present, will return alerts that match the validities in this list. + // Valid options are active, inactive, and unknown. + Validity string `url:"validity,omitempty"` + // The direction to sort the results by. Possible values are: asc, desc. Default: desc. Direction string `url:"direction,omitempty"`