Skip to content

Commit 0f07bdf

Browse files
authored
Update the NPM lockfile (package-lock.json) (#191)
* npm update * make everything-from-scratch
1 parent b8da1a4 commit 0f07bdf

File tree

2 files changed

+116
-99
lines changed

2 files changed

+116
-99
lines changed

dist/index.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23817,6 +23817,19 @@ function getProxyFetch(destinationUrl) {
2381723817
function 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
2382223835
function 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

0 commit comments

Comments
 (0)