Skip to content

Commit

Permalink
Expose PreReceiveSecretDetectionEnabled setting
Browse files Browse the repository at this point in the history
This change adds the `PreReceiveSecretDetectionEnabled` field to the
`Project` struct. This boolean reflects the state of the project Secret
Push Protection feature:
https://docs.gitlab.com/ee/user/application_security/secret_detection/secret_push_protection/
See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/160960
  • Loading branch information
Philippe Lafoucrière committed Aug 9, 2024
1 parent 6bce6cf commit 459d6e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ type CreateProjectOptions struct {
RequirementsAccessLevel *AccessControlValue `url:"requirements_access_level,omitempty" json:"requirements_access_level,omitempty"`
ResolveOutdatedDiffDiscussions *bool `url:"resolve_outdated_diff_discussions,omitempty" json:"resolve_outdated_diff_discussions,omitempty"`
SecurityAndComplianceAccessLevel *AccessControlValue `url:"security_and_compliance_access_level,omitempty" json:"security_and_compliance_access_level,omitempty"`
PreReceiveSecretDetectionEnabled *bool `url:"pre_receive_secret_detection_enabled,omitempty" json:"pre_receive_secret_detection_enabled,omitempty"`
SharedRunnersEnabled *bool `url:"shared_runners_enabled,omitempty" json:"shared_runners_enabled,omitempty"`
GroupRunnersEnabled *bool `url:"group_runners_enabled,omitempty" json:"group_runners_enabled,omitempty"`
ShowDefaultAwardEmojis *bool `url:"show_default_award_emojis,omitempty" json:"show_default_award_emojis,omitempty"`
Expand Down

0 comments on commit 459d6e3

Please sign in to comment.