From 525192cc9b3c82faa169939f37f11d7ccdae867d Mon Sep 17 00:00:00 2001 From: Harshit Date: Tue, 9 Jun 2026 18:34:04 +0530 Subject: [PATCH] fix(ci-info): use GITHUB_RUN_ID for build_number on GitHub Actions [SDK-6279] The GitHub Actions branch of getCiInfo() set build_number from GITHUB_RUN_NUMBER (the per-workflow sequential counter) while build_url is built from GITHUB_RUN_ID (the globally-unique run id in the actions/runs/ URL). The two referenced different identifiers for the same run, so Observability's dashboard "Rerun" could not re-dispatch the workflow (GitHub returned 404 -> obs-api "Invalid Params!" -> HTTP 500). Align build_number with the run id already used by build_url. GitHub Actions only; all other CI providers are unchanged. Co-Authored-By: Claude Opus 4.8 --- bin/helpers/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/helpers/helper.js b/bin/helpers/helper.js index 6d01cfd5..93933022 100644 --- a/bin/helpers/helper.js +++ b/bin/helpers/helper.js @@ -274,7 +274,7 @@ exports.getCiInfo = () => { name: "GitHub Actions", build_url: `${env.GITHUB_SERVER_URL || 'https://github.com'}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}`, job_name: env.GITHUB_WORKFLOW || env.GITHUB_JOB, - build_number: env.GITHUB_RUN_NUMBER + build_number: env.GITHUB_RUN_ID }; } // Buildkite