Skip to content

Commit

Permalink
Merge pull request #1709 from alphagov/co-pe-team-access
Browse files Browse the repository at this point in the history
Give CO Platform Engineering team read-only access to dns repos
  • Loading branch information
AgaDufrat authored Feb 14, 2025
2 parents 24339f6 + a6a6d64 commit 8e40485
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions terraform/deployments/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ resource "github_team" "govuk" {
privacy = "closed"
}

data "github_team" "co_platform_engineering" {
slug = "co-platform-engineering"
}

resource "github_team_repository" "govuk_production_admin_repos" {
for_each = local.repositories
repository = each.key
Expand All @@ -114,6 +118,13 @@ resource "github_team_repository" "govuk_repos" {
permission = try(each.value.teams["govuk"], "push")
}

resource "github_team_repository" "co_platform_engineering_repos" {
for_each = toset(["govuk-dns-tf", "govuk-dns", "govuk-dns-config"])
repository = each.key
team_id = data.github_team.co_platform_engineering.id
permission = "pull"
}

resource "github_repository" "govuk_repos" {
for_each = local.repositories

Expand Down

0 comments on commit 8e40485

Please sign in to comment.