provider "aws" {
  region = "us-east-1"
}

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/csrf-protector/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source             = "git@github.com:theorchard/terraform-github.git//?ref=3.0.1"
  application_family = "php-monolith"

  github_repository_names = {
    csrf-protector = {
      branch_protection_enabled        = true
      branch_protection_enforce_admins = true
      repo_auto_init                   = true
      archived_repository              = false
      github_code_owner_reviews        = false
      description                      = "PHP library for CSRF protection in web applications."
      has_downloads                    = false
      homepage_url                     = "https://github.com/theorchard/csrf-protector"
    }
  }
}
