Skip to content

Commit 525192c

Browse files
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/<id> 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 <noreply@anthropic.com>
1 parent bb73e30 commit 525192c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/helpers/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ exports.getCiInfo = () => {
274274
name: "GitHub Actions",
275275
build_url: `${env.GITHUB_SERVER_URL || 'https://github.com'}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}`,
276276
job_name: env.GITHUB_WORKFLOW || env.GITHUB_JOB,
277-
build_number: env.GITHUB_RUN_NUMBER
277+
build_number: env.GITHUB_RUN_ID
278278
};
279279
}
280280
// Buildkite

0 commit comments

Comments
 (0)