Skip to content

Commit 31de528

Browse files
committed
fix wrong env name + defaults for gitlab
1 parent 91b909a commit 31de528

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/basic-gitlab-integration.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module "spectral_lambda_integration" {
77
# Required environment variables
88
SPECTRAL_DSN = "MySpectralDSN"
99
CHECK_POLICY = "Fail on any issue" # (Fail on any issue / Fail on warnings and above / Fail on errors only / Always Pass)
10-
GITLAB_TOKEN = "MyGitlabToken"
10+
GITLAB_ACCESS_TOKEN = "MyGitlabToken"
1111
GITLAB_WEBHOOK_SECRET = "MyGitlabWebhookSecret"
1212
# Optional environment variables
1313
# STRICT_MODE = false / true

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ locals {
88
shared_default_secrets_names = ["Spectral_Dsn"]
99
default_secrets_names = {
1010
"github" = coalesce(var.secrets_names, concat(local.shared_default_secrets_names, ["Spectral_GithubBot_PrivateKey", "Spectral_GithubBot_WebhookSecret"])),
11-
"gitlab" = coalesce(var.secrets_names, concat(local.shared_default_secrets_names, ["Spectral_GitlabBot_GitlabToken", "Spectral_GitlabBot_WebhookSecret"]))
11+
"gitlab" = coalesce(var.secrets_names, concat(local.shared_default_secrets_names, ["Spectral_GitlabBot_AccesToken", "Spectral_GitlabBot_WebhookSecret"]))
1212
}
1313
# Please do not change or replace the 'frontend' suffix since there a logic in the bot based in it
1414
api_triggered_function_name = local.single_lambda_integration ? local.resource_name_pattern : "${local.resource_name_pattern}-frontend"

0 commit comments

Comments
 (0)