Skip to content

Commit

Permalink
fix validation on main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcherbatyi committed Jun 23, 2024
1 parent 1de80a4 commit a190cd7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:

tofu-terraform-validate:
name: 'OpenTofu'
name: 'OpenTofu+Checkov'
runs-on: ubuntu-latest
defaults:
run:
Expand Down
25 changes: 25 additions & 0 deletions tf-bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,31 @@ resource "github_repository" "this" {
description = var.github_repository
visibility = "private"
auto_init = true # This is extremely important as flux_bootstrap_git will not work without a repository that has been initialised

# Enable vulnerability alerts
vulnerability_alerts = true

# Branch protection
branch_protection {
pattern = "main"
enforce_admins = true

required_pull_request_reviews {
dismiss_stale_reviews = true
require_code_owner_reviews = true
required_approving_review_count = 1
}

required_status_checks {
strict = true
contexts = ["validate"]
}

restrictions {
users = []
teams = []
}
}
}

# ==========================================
Expand Down

0 comments on commit a190cd7

Please sign in to comment.