File tree Expand file tree Collapse file tree 2 files changed +116
-99
lines changed
Expand file tree Collapse file tree 2 files changed +116
-99
lines changed Original file line number Diff line number Diff line change @@ -23817,6 +23817,19 @@ function getProxyFetch(destinationUrl) {
2381723817function getApiBaseUrl() {
2381823818 return process.env["GITHUB_API_URL"] || "https://api.github.com";
2381923819}
23820+ function getUserAgentWithOrchestrationId(baseUserAgent) {
23821+ var _a;
23822+ const orchId = (_a = process.env["ACTIONS_ORCHESTRATION_ID"]) === null || _a === void 0 ? void 0 : _a.trim();
23823+ if (orchId) {
23824+ const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_");
23825+ const tag = `actions_orchestration_id/${sanitizedId}`;
23826+ if (baseUserAgent === null || baseUserAgent === void 0 ? void 0 : baseUserAgent.includes(tag))
23827+ return baseUserAgent;
23828+ const ua = baseUserAgent ? `${baseUserAgent} ` : "";
23829+ return `${ua}${tag}`;
23830+ }
23831+ return baseUserAgent;
23832+ }
2382023833
2382123834// node_modules/universal-user-agent/index.js
2382223835function getUserAgent() {
@@ -27428,6 +27441,10 @@ function getOctokitOptions(token, options) {
2742827441 if (auth2) {
2742927442 opts.auth = auth2;
2743027443 }
27444+ const userAgent3 = getUserAgentWithOrchestrationId(opts.userAgent);
27445+ if (userAgent3) {
27446+ opts.userAgent = userAgent3;
27447+ }
2743127448 return opts;
2743227449}
2743327450
You can’t perform that action at this time.
0 commit comments