# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/orchard/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=6.0.0"

  repository_name                  = "orchard"
  description                      = "Orchard's core repo. Includes Workstation, OA and Developer modules"
  default_code_owner               = "application-security"
  application_family               = var.application_family
  github_pull_teams                = ["deployers", "orcdcisystems", "orcharddevs-ro", "royaltyshare-eng", "sys-eng"]
  github_push_teams                = ["mergers", "php-upgrade-reviewers"]
  pull_request_bypassers           = ["orchardci"]
  github_triage_teams              = []
  has_downloads                    = true
  branch_protection_enforce_admins = false
}
