Skip to content

Commit

Permalink
Add sanity check to github repositories data source
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jan 30, 2025
1 parent b0c5c38 commit a69025c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/deployments/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ provider "github" {

data "github_repositories" "govuk" {
query = "topic:govuk org:alphagov archived:false"

lifecycle {
postcondition {
condition = length(self.full_names) > 100
error_message = "not enough repositories were found by data source"
}
}
}

data "github_repository" "govuk" {
Expand Down

0 comments on commit a69025c

Please sign in to comment.