Skip to content

Commit

Permalink
Merge pull request #1256 from alphagov/add-gem-topic
Browse files Browse the repository at this point in the history
Add gem topic and token
  • Loading branch information
MuriloDalRi authored Apr 25, 2024
2 parents 0f9680a + bbab2de commit 293285f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/deployments/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ locals {
for r in data.github_repository.govuk_repo_names : r
if !r.fork && !contains(r.topics, "govuk-sensitive-access")
]

gems = [
for r in data.github_repository.govuk : r
if !r.fork && contains(r.topics, "gem")
]
}

resource "github_team" "govuk_ci_bots" {
Expand Down Expand Up @@ -122,6 +127,11 @@ resource "github_actions_organization_secret_repositories" "ci_user_github_api_t
selected_repository_ids = [for repo in local.deployable_repos : repo.repo_id]
}

resource "github_actions_organization_secret_repositories" "gems_github_api_token" {
secret_name = "GOVUK_CI_GITHUB_API_TOKEN"
selected_repository_ids = [for repo in local.gems : repo.repo_id]
}

resource "github_actions_organization_secret_repositories" "argo_events_webhook_token" {
secret_name = "GOVUK_ARGO_EVENTS_WEBHOOK_TOKEN"
selected_repository_ids = [for repo in local.deployable_repos : repo.repo_id]
Expand Down

0 comments on commit 293285f

Please sign in to comment.