-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: secret scanning validity checks, secret scanning non provider p…
…atterns (#85) * New updates to generated code * New updates to generated code --------- Co-authored-by: Octokit Bot <[email protected]>
- Loading branch information
1 parent
a74a3a2
commit a379f57
Showing
11 changed files
with
595 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
pkg/github/models/code_security_configuration_secret_scanning_validity_checks.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package models | ||
import ( | ||
"errors" | ||
) | ||
// The enablement status of secret scanning validity checks | ||
type CodeSecurityConfiguration_secret_scanning_validity_checks int | ||
|
||
const ( | ||
ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS CodeSecurityConfiguration_secret_scanning_validity_checks = iota | ||
DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
) | ||
|
||
func (i CodeSecurityConfiguration_secret_scanning_validity_checks) String() string { | ||
return []string{"enabled", "disabled", "not_set"}[i] | ||
} | ||
func ParseCodeSecurityConfiguration_secret_scanning_validity_checks(v string) (any, error) { | ||
result := ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
switch v { | ||
case "enabled": | ||
result = ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
case "disabled": | ||
result = DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
case "not_set": | ||
result = NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
default: | ||
return 0, errors.New("Unknown CodeSecurityConfiguration_secret_scanning_validity_checks value: " + v) | ||
} | ||
return &result, nil | ||
} | ||
func SerializeCodeSecurityConfiguration_secret_scanning_validity_checks(values []CodeSecurityConfiguration_secret_scanning_validity_checks) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i CodeSecurityConfiguration_secret_scanning_validity_checks) isMultiValue() bool { | ||
return false | ||
} |
Oops, something went wrong.