Skip to content

Commit

Permalink
fixing repo permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 9, 2024
1 parent 84debed commit 8872ff2
Showing 1 changed file with 36 additions and 46 deletions.
82 changes: 36 additions & 46 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
locals {
collaborators = {
naray007 = "push",
morga471 = "admin",
morga471 = "push",
lolli001 = "pull",
gomez385 = "admin"
gomez385 = "push"
}
pull_request_bypassers = [
"arnol377"
Expand Down Expand Up @@ -37,7 +37,6 @@ module "asset_releases" {
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
Expand Down Expand Up @@ -74,7 +73,6 @@ module "win_image_pipeline" {
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = true
Expand All @@ -93,7 +91,6 @@ module "linux_image_pipeline" {
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = true
Expand All @@ -112,7 +109,6 @@ module "goss-testing" {
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = true
Expand Down Expand Up @@ -295,23 +291,6 @@ module "image_pipeline_ansible_playbooks" {
pull_request_bypassers = local.pull_request_bypassers
}

resource "aws_codecommit_repository" "image-pipeline-ansible-playbooks" {
repository_name = module.image_pipeline_ansible_playbooks.github_repo.name
description = module.image_pipeline_ansible_playbooks.github_repo.description
}


resource "aws_codecommit_repository" "windows-image-pipeline" {
repository_name = "windows-image-pipeline"
description = "Windows Packer config for Image Pipeline"
}

resource "aws_codecommit_repository" "linux-image-pipeline" {
repository_name = "linux-image-pipeline"
description = "Linux Packer config for Image Pipeline"
}


module "image-pipeline-playbook" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
#github_codeowners_team = "CSVD"
Expand All @@ -324,7 +303,6 @@ module "image-pipeline-playbook" {
force_name = true
create_codeowners = false
enforce_prs = false
is_template = true
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
Expand Down Expand Up @@ -357,47 +335,59 @@ module "arm_rhel_image_pipeline" {
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}



# image-pipeline-goss-testing
resource "aws_codecommit_repository" "goss-testing" {
repository_name = "image-pipeline-goss-testing"
description = "Goss testing suite for ec2 images"
default_branch = "main"
module "setup_terraform" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
github_repo_description = "Github Actions SetupTerraform"
repo_org = "arnol377"
name = "gh-actions-setup-terraform"
github_repo_topics = [
"terraform"
]
force_name = true
github_is_private = false
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}


data terraform_remote_state pipeline {
backend = "s3"
config = {
bucket = "inf-tfstate-229685449397"
key = "csvd-dev-gov/common/apps/aws-image-pipeline-demo"
region = "us-gov-east-1"
dynamodb_table = "tf_remote_state"

}
module "setup_node" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
github_repo_description = "Github Actions Setup Node"
repo_org = "arnol377"
name = "gh-actions-setup-node"
github_repo_topics = [
"terraform"
]
force_name = true
github_is_private = false
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}

module "setup_terraform" {
# ghe-runner
module "ghe_runners" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
github_repo_description = "Github Actions SetupTerraform"
github_repo_description = "Manage Repo Specific Runners"
repo_org = "arnol377"
name = "gh-actions-setup-terraform"
name = "ghe-runners"
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
github_is_private = false
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}

0 comments on commit 8872ff2

Please sign in to comment.