diff --git a/lib/analyze-action-post.js b/lib/analyze-action-post.js index 438d0fd21..f4ce220e5 100644 --- a/lib/analyze-action-post.js +++ b/lib/analyze-action-post.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", @@ -89404,7 +89413,7 @@ var require_package3 = __commonJS({ "node_modules/@actions/artifact/package.json"(exports2, module2) { module2.exports = { name: "@actions/artifact", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions artifact lib", keywords: [ @@ -89446,7 +89455,7 @@ var require_package3 = __commonJS({ dependencies: { "@actions/core": "^2.0.0", "@actions/github": "^6.0.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@azure/storage-blob": "^12.29.1", "@octokit/core": "^5.2.1", "@octokit/plugin-request-log": "^1.0.4", diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 737f18f3d..c9ba07ccb 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/autobuild-action.js b/lib/autobuild-action.js index e046707d9..d90400a25 100644 --- a/lib/autobuild-action.js +++ b/lib/autobuild-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/init-action-post.js b/lib/init-action-post.js index 98790c51b..82cab8f9d 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", @@ -89404,7 +89413,7 @@ var require_package3 = __commonJS({ "node_modules/@actions/artifact/package.json"(exports2, module2) { module2.exports = { name: "@actions/artifact", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions artifact lib", keywords: [ @@ -89446,7 +89455,7 @@ var require_package3 = __commonJS({ dependencies: { "@actions/core": "^2.0.0", "@actions/github": "^6.0.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@azure/storage-blob": "^12.29.1", "@octokit/core": "^5.2.1", "@octokit/plugin-request-log": "^1.0.4", diff --git a/lib/init-action.js b/lib/init-action.js index ca6fd779c..21c7f35e9 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -77041,7 +77050,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -77082,7 +77091,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/resolve-environment-action.js b/lib/resolve-environment-action.js index e34a1bb41..893813cb5 100644 --- a/lib/resolve-environment-action.js +++ b/lib/resolve-environment-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/setup-codeql-action.js b/lib/setup-codeql-action.js index 09d218d8e..89eae7ad7 100644 --- a/lib/setup-codeql-action.js +++ b/lib/setup-codeql-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -75593,7 +75602,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -75634,7 +75643,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/start-proxy-action-post.js b/lib/start-proxy-action-post.js index a98543911..89aac14c5 100644 --- a/lib/start-proxy-action-post.js +++ b/lib/start-proxy-action-post.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", @@ -85275,7 +85284,7 @@ var require_package3 = __commonJS({ "node_modules/@actions/artifact/package.json"(exports2, module2) { module2.exports = { name: "@actions/artifact", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions artifact lib", keywords: [ @@ -85317,7 +85326,7 @@ var require_package3 = __commonJS({ dependencies: { "@actions/core": "^2.0.0", "@actions/github": "^6.0.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@azure/storage-blob": "^12.29.1", "@octokit/core": "^5.2.1", "@octokit/plugin-request-log": "^1.0.4", diff --git a/lib/start-proxy-action.js b/lib/start-proxy-action.js index e51eae8b4..5201e013a 100644 --- a/lib/start-proxy-action.js +++ b/lib/start-proxy-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -48727,10 +48736,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -48752,7 +48761,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -48764,7 +48773,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -98252,7 +98261,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -98293,7 +98302,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/upload-lib.js b/lib/upload-lib.js index a2d730495..b9da1ea61 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -28662,10 +28671,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -28687,7 +28696,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -28699,7 +28708,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -76890,7 +76899,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -76931,7 +76940,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/upload-sarif-action-post.js b/lib/upload-sarif-action-post.js index b4bfe65d5..cc2450181 100644 --- a/lib/upload-sarif-action-post.js +++ b/lib/upload-sarif-action-post.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -35397,7 +35406,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/artifact/package.json"(exports2, module2) { module2.exports = { name: "@actions/artifact", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions artifact lib", keywords: [ @@ -35439,7 +35448,7 @@ var require_package2 = __commonJS({ dependencies: { "@actions/core": "^2.0.0", "@actions/github": "^6.0.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@azure/storage-blob": "^12.29.1", "@octokit/core": "^5.2.1", "@octokit/plugin-request-log": "^1.0.4", @@ -117418,7 +117427,7 @@ var require_package3 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -117459,7 +117468,7 @@ var require_package3 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0", diff --git a/lib/upload-sarif-action.js b/lib/upload-sarif-action.js index 77e3e4dd7..51ab5f8d1 100644 --- a/lib/upload-sarif-action.js +++ b/lib/upload-sarif-action.js @@ -17498,7 +17498,7 @@ var require_lib = __commonJS({ this._maxRetries = 1; this._keepAlive = false; this._disposed = false; - this.userAgent = userAgent; + this.userAgent = this._getUserAgentWithOrchestrationId(userAgent); this.handlers = handlers || []; this.requestOptions = requestOptions; if (requestOptions) { @@ -17923,6 +17923,15 @@ var require_lib = __commonJS({ } return proxyAgent; } + _getUserAgentWithOrchestrationId(userAgent) { + const baseUserAgent = userAgent || "actions/http-client"; + const orchId = process.env["ACTIONS_ORCHESTRATION_ID"]; + if (orchId) { + const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, "_"); + return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`; + } + return baseUserAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -27365,10 +27374,10 @@ var require_package = __commonJS({ }, license: "MIT", dependencies: { - "@actions/artifact": "^5.0.1", + "@actions/artifact": "^5.0.2", "@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2", - "@actions/cache": "^5.0.1", - "@actions/core": "^2.0.1", + "@actions/cache": "^5.0.2", + "@actions/core": "^2.0.2", "@actions/exec": "^2.0.0", "@actions/github": "^6.0.1", "@actions/glob": "^0.5.0", @@ -27390,7 +27399,7 @@ var require_package = __commonJS({ }, devDependencies: { "@ava/typescript": "6.0.0", - "@eslint/compat": "^2.0.0", + "@eslint/compat": "^2.0.1", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@microsoft/eslint-formatter-sarif": "^3.1.0", @@ -27402,7 +27411,7 @@ var require_package = __commonJS({ "@types/node-forge": "^1.3.14", "@types/semver": "^7.7.1", "@types/sinon": "^21.0.0", - "@typescript-eslint/eslint-plugin": "^8.52.0", + "@typescript-eslint/eslint-plugin": "^8.53.0", "@typescript-eslint/parser": "^8.48.0", ava: "^6.4.1", esbuild: "^0.27.2", @@ -75593,7 +75602,7 @@ var require_package2 = __commonJS({ "node_modules/@actions/cache/package.json"(exports2, module2) { module2.exports = { name: "@actions/cache", - version: "5.0.1", + version: "5.0.2", preview: true, description: "Actions cache lib", keywords: [ @@ -75634,7 +75643,7 @@ var require_package2 = __commonJS({ "@actions/exec": "^2.0.0", "@actions/glob": "^0.5.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "@actions/http-client": "^3.0.0", + "@actions/http-client": "^3.0.1", "@actions/io": "^2.0.0", "@azure/abort-controller": "^1.1.0", "@azure/core-rest-pipeline": "^1.22.0",