diff --git a/docs/changelog.md b/docs/changelog.md index efe1af49c0..3e5eac7124 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,8 +2,9 @@ This changelog documents user-relevant changes to the GitHub runner charm. -## 2026-04-27 +## 2026-04-24 +- Exposed the configured GitHub path (org or repository) as a Terraform module output, allowing consumers to make decisions based on which path a runner is registered to. - Added configuration option `otel-collector-endpoint` to enable the otel-collector to export metric. Setting this configuration option will add the environment variable ACTION_OTEL_EXPORTER_OTLP_ENDPOINT to the runner, which allow users to configure their own metrics to be exported. ## 2026-04-22 diff --git a/terraform/charm/outputs.tf b/terraform/charm/outputs.tf index 8ee20ed842..8764a4f42f 100644 --- a/terraform/charm/outputs.tf +++ b/terraform/charm/outputs.tf @@ -29,6 +29,11 @@ output "requires" { } } +output "path" { + description = "GitHub path (org or repo) the runner is registered to." + value = lookup(var.config, "path", "") +} + output "provides" { value = { cos_agent = "cos-agent" diff --git a/terraform/product/outputs.tf b/terraform/product/outputs.tf index deac1bfa34..7bec02e556 100644 --- a/terraform/product/outputs.tf +++ b/terraform/product/outputs.tf @@ -12,6 +12,11 @@ output "all_runner_names" { } +output "all_runner_paths" { + description = "Map of github-runner application name to its configured GitHub path." + value = { for name, github_runner in module.github_runner : name => github_runner.path } +} + output "all_app_names" { description = "Names of the all the deployed apps, github-runner plus github-runner-image-builder." value = concat([for github_runner in values(module.github_runner) : github_runner.app_name], [module.github_runner_image_builder.app_name])