From 06f7e432fb5842b24f1f47850735638dd0d78298 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 25 Aug 2026 18:52:12 -0700 Subject: [PATCH 1/3] chore(gocd): use GitHub App credentials --- gocd/templates/pipelines/usage-accountant.libsonnet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gocd/templates/pipelines/usage-accountant.libsonnet b/gocd/templates/pipelines/usage-accountant.libsonnet index d2a691e..c9a90ee 100644 --- a/gocd/templates/pipelines/usage-accountant.libsonnet +++ b/gocd/templates/pipelines/usage-accountant.libsonnet @@ -28,7 +28,8 @@ function(region) { elastic_profile_id: 'usage-accountant', environment_variables: { // Required for checkruns. - GITHUB_TOKEN: '{{SECRET:[devinfra-github][token]}}', + GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', + GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', }, tasks: [ gocdtasks.script(importstr '../bash/check-github.sh'), From d81f812783fd0616b31da26fd2f172542533b66a Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 27 Aug 2026 10:39:25 -0700 Subject: [PATCH 2/3] use checkruns2 for GitHub App credentials --- gocd/templates/bash/check-github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gocd/templates/bash/check-github.sh b/gocd/templates/bash/check-github.sh index 0bc1f64..43ac728 100755 --- a/gocd/templates/bash/check-github.sh +++ b/gocd/templates/bash/check-github.sh @@ -1,6 +1,6 @@ #!/bin/bash -checks-githubactions-checkruns \ +checks-githubactions-checkruns2 \ --timeout-mins 60 \ getsentry/usage-accountant \ ${GO_REVISION_USAGE_ACCOUNTANT_REPO} \ From 2fcaf1cb222793ab4c727b38a7364935cc9d21e6 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 27 Aug 2026 10:41:05 -0700 Subject: [PATCH 3/3] clarify checkruns2 App credential usage --- gocd/templates/pipelines/usage-accountant.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gocd/templates/pipelines/usage-accountant.libsonnet b/gocd/templates/pipelines/usage-accountant.libsonnet index c9a90ee..d1a9b88 100644 --- a/gocd/templates/pipelines/usage-accountant.libsonnet +++ b/gocd/templates/pipelines/usage-accountant.libsonnet @@ -27,7 +27,7 @@ function(region) { timeout: 1800, elastic_profile_id: 'usage-accountant', environment_variables: { - // Required for checkruns. + // Required for checkruns2. GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', },