diff --git a/cmd/server.go b/cmd/server.go index 7da815856..be5dd3b8f 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -80,6 +80,7 @@ const ( GitlabWebhookSecretFlag = "gitlab-webhook-secret" // nolint: gosec APISecretFlag = "api-secret" HidePrevPlanComments = "hide-prev-plan-comments" + QuietPolicyChecks = "quiet-policy-checks" LockingDBType = "locking-db-type" LogLevelFlag = "log-level" MarkdownTemplateOverridesDirFlag = "markdown-template-overrides-dir" @@ -417,6 +418,10 @@ var boolFlags = map[string]boolFlag{ "VCS support is limited to: GitHub.", defaultValue: false, }, + QuietPolicyChecks: { + description: "Exclude policy check comments from pull requests unless there's an actual error from conftest. This also excludes warnings.", + defaultValue: false, + }, RedisTLSEnabled: { description: "Enable TLS on the connection to Redis with a min TLS version of 1.2", defaultValue: DefaultRedisTLSEnabled,