Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion github/branch/master/deploy-actions.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ locals {
main = merge(
local.defaults.locals.branch_protection.main,
{
required_status_checks = []
required_status_checks = [
"validate / Validate PR title",
"ensure-sha-pinned / Ensure actions are pinned to SHAs",
]
}
)
}
Expand Down
20 changes: 20 additions & 0 deletions github/branch/master/dot-github.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
locals {
defaults = read_terragrunt_config("defaults.hcl")

repository = {
name = ".github"
branch_protection = {
main = merge(
local.defaults.locals.branch_protection.main,
{
required_status_checks = [
"gatekeeper / CI Gatekeeper",
"semantic / Validate PR title",
"lint / Ensure actions are pinned to SHAs",
"Test scripts",
]
}
)
}
}
}
3 changes: 3 additions & 0 deletions github/branch/master/monorepo.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ locals {
local.defaults.locals.branch_protection.main,
{
required_status_checks = [
"ci-gatekeeper / CI Gatekeeper",
"validate / Validate PR title",
"ensure-sha-pinned / Ensure actions are pinned to SHAs",
"Docs Sync Check",
]
# Allows release and image update bots to push directly without failing status checks.
Expand Down
6 changes: 5 additions & 1 deletion github/branch/master/platform.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ locals {
main = merge(
local.defaults.locals.branch_protection.main,
{
required_status_checks = []
required_status_checks = [
"ci-gatekeeper / CI Gatekeeper",
"validate / Validate PR title",
"ensure-sha-pinned / Ensure actions are pinned to SHAs",
]
}
)
}
Expand Down
2 changes: 2 additions & 0 deletions github/branch/master/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ locals {
monorepo = read_terragrunt_config("monorepo.hcl")
platform = read_terragrunt_config("platform.hcl")
deploy_actions = read_terragrunt_config("deploy-actions.hcl")
dot_github = read_terragrunt_config("dot-github.hcl")
}

inputs = {
repositories = {
monorepo = local.monorepo.locals.repository
platform = local.platform.locals.repository
deploy-actions = local.deploy_actions.locals.repository
dot-github = local.dot_github.locals.repository
}
github_token = get_env("GITHUB_TOKEN")
}
Loading