fix: Add server flag for quiet policy checks as documented (#2705)

This commit is contained in:
Marcus Ramberg
2022-11-21 15:08:54 +01:00
committed by GitHub
parent 065adc3214
commit ada4e53931

View File

@@ -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,