Skip to content

Commit 0e17846

Browse files
committed
feat: add new api fields
1 parent a61728d commit 0e17846

File tree

3 files changed

+202
-0
lines changed

3 files changed

+202
-0
lines changed

github/github-accessors.go

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/orgs_codesecurity_configurations.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ type DependencyGraphAutosubmitActionOptions struct {
1616
LabeledRunners *bool `json:"labeled_runners,omitempty"`
1717
}
1818

19+
// CodeScanningOptions represents the options for the Security Configuration code scanning feature.
20+
type CodeScanningOptions struct {
21+
AllowAdvanced *bool `json:"allow_advanced,omitempty"`
22+
}
23+
24+
// CodeScanningDefaultSetupOptions represents the feature options for the code scanning default options.
25+
type CodeScanningDefaultSetupOptions struct {
26+
RunnerType *string `json:"runner_type"`
27+
RunnerLabel *string `json:"runner_label,omitempty"`
28+
}
29+
1930
// RepositoryAttachment represents a repository attachment to a code security configuration.
2031
type RepositoryAttachment struct {
2132
Status *string `json:"status"`
@@ -35,10 +46,17 @@ type CodeSecurityConfiguration struct {
3546
DependabotAlerts *string `json:"dependabot_alerts,omitempty"`
3647
DependabotSecurityUpdates *string `json:"dependabot_security_updates,omitempty"`
3748
CodeScanningDefaultSetup *string `json:"code_scanning_default_setup,omitempty"`
49+
CodeScanningDefaultSetupOptions *CodeScanningDefaultSetupOptions `json:"code_scanning_default_setup_options,omitempty"`
50+
CodeScanningDelegatedAlertDismissal *string `json:"code_scanning_delegated_alert_dismissal,omitempty"`
51+
CodeScanningOptions *CodeScanningOptions `json:"code_scanning_options,omitempty"`
52+
CodeSecurity *string `json:"code_security"`
3853
SecretScanning *string `json:"secret_scanning,omitempty"`
3954
SecretScanningPushProtection *string `json:"secret_scanning_push_protection,omitempty"`
4055
SecretScanningValidityChecks *string `json:"secret_scanning_validity_checks,omitempty"`
4156
SecretScanningNonProviderPatterns *string `json:"secret_scanning_non_provider_patterns,omitempty"`
57+
SecretScanningGenericSecrets *string `json:"secret_scanning_generic_secrets,omitempty"`
58+
SecretScanningDelegatedAlertDismissal *string `json:"secret_scanning_delegated_alert_dismissal,omitempty"`
59+
SecretProtection *string `json:"secret_protection,omitempty"`
4260
PrivateVulnerabilityReporting *string `json:"private_vulnerability_reporting,omitempty"`
4361
Enforcement *string `json:"enforcement,omitempty"`
4462
URL *string `json:"url,omitempty"`

0 commit comments

Comments
 (0)