Skip to content

Commit 14d3515

Browse files
lint
1 parent ac65a00 commit 14d3515

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

locals.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
locals {
22
org_defaults = {
3-
role_name = "githubActions-iamRole"
4-
allowed_branches = ["main"]
5-
allowed_tags = []
3+
role_name = "githubActions-iamRole"
4+
allowed_branches = ["main"]
5+
allowed_tags = []
66
allowed_environments = []
7-
pull_requests = false
7+
pull_requests = false
88
repositories = {
99
"*" = {}
1010
}
@@ -40,11 +40,11 @@ locals {
4040
for repo_name, repo_data in org_data["repositories"] : {
4141
role_name : repo_data["role_name"]
4242
github_subs : flatten([
43-
[ for branch in repo_data["allowed_branches"] : "repo:${org_name}/${repo_name}:ref:refs/heads/${branch}"],
44-
[ for tag in repo_data["allowed_tags"] : "repo:${org_name}/${repo_name}:ref:refs/tags/${tag}"],
45-
[ for env in repo_data["allowed_environments"] : "repo:${org_name}/${repo_name}:environment:${env}"],
46-
[ for dummy in ["DUMMY"] : "repo:${org_name}/${repo_name}:pull_request" if repo_data["pull_requests"] == true]
47-
])
43+
[for branch in repo_data["allowed_branches"] : "repo:${org_name}/${repo_name}:ref:refs/heads/${branch}"],
44+
[for tag in repo_data["allowed_tags"] : "repo:${org_name}/${repo_name}:ref:refs/tags/${tag}"],
45+
[for env in repo_data["allowed_environments"] : "repo:${org_name}/${repo_name}:environment:${env}"],
46+
[for dummy in ["DUMMY"] : "repo:${org_name}/${repo_name}:pull_request" if repo_data["pull_requests"] == true]
47+
])
4848
}
4949
]
5050
])

providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
version = "~> 4.0"
77
}
88
tls = {
9-
source = "hashicorp/tls"
9+
source = "hashicorp/tls"
1010
version = "~> 4.0"
1111
}
1212
}

0 commit comments

Comments
 (0)