Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Each repo is declared as an instance of the `./modules/github-repo` module (`rep
- branch/tag rulesets
- collaborators
- secrets
- Actions variables, including `ACTIONS_RUNNER` (the `runs-on` label for workflows, set per repo via `actions_runner`, default `ubuntu-26.04`)
- webhooks
- GitHub App credential distribution

Expand Down
6 changes: 6 additions & 0 deletions modules/github-repo/actions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ resource "github_actions_variable" "this" {
value = each.value
}

resource "github_actions_variable" "actions_runner" {
repository = github_repository.this.name
variable_name = "ACTIONS_RUNNER"
value = var.actions_runner
}

resource "github_actions_variable" "app_client_id" {
for_each = var.apps
repository = github_repository.this.name
Expand Down
5 changes: 5 additions & 0 deletions modules/github-repo/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ variable "actions_variables" {
default = {}
}

variable "actions_runner" {
type = string
default = "ubuntu-26.04"
}

variable "apps" {
type = map(object({
client_id = string
Expand Down
Loading