Skip to content

Commit

Permalink
fixing team permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 14, 2024
1 parent bb3cbbc commit b5db098
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
5 changes: 1 addition & 4 deletions image-pipeline.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ module "image_pipeline_repos" {
create_codeowners = false
enforce_prs = true
collaborators = merge(local.collaborators, { garri325 = "admin" })
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
extra_files = [
{
Expand Down Expand Up @@ -76,7 +75,6 @@ module "asset_releases" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -94,7 +92,6 @@ module "aws_image_pipeline" {
create_codeowners = false
enforce_prs = true
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
vars = [
{
Expand Down Expand Up @@ -122,4 +119,4 @@ module "aws_image_pipeline" {
)
}
]
}
}
16 changes: 0 additions & 16 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ locals {
]
}

# Add a team to the organization
resource "github_team" "team" {
name = "csvd-automation"
}


module "elastic_beanstalk" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
Expand All @@ -30,7 +25,6 @@ module "elastic_beanstalk" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -50,7 +44,6 @@ module "automation-repos" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -68,7 +61,6 @@ module "terraform-github-repo" {
enforce_prs = false
create_codeowners = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -89,7 +81,6 @@ module "elastic_beanstalk_java" {
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -109,7 +100,6 @@ module "elastic_beanstalk_php" {
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -129,7 +119,6 @@ module "elastic_beanstalk_nodejs" {
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -151,7 +140,6 @@ module "elastic_beanstalk_docker" {
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -169,7 +157,6 @@ module "beanstalk-demo" {
enforce_prs = false
is_template = true
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}

Expand All @@ -186,7 +173,6 @@ module "setup_terraform" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}

module "setup_node" {
Expand All @@ -202,7 +188,6 @@ module "setup_node" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}

# ghe-runner
Expand All @@ -219,6 +204,5 @@ module "ghe_runners" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
}

0 comments on commit b5db098

Please sign in to comment.