Skip to content

Commit 6377737

Browse files
fix(deps): update dependencies (#135)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jkroepke-automation[bot] <210774419+jkroepke-automation[bot]@users.noreply.github.com>
1 parent fbed372 commit 6377737

4 files changed

Lines changed: 24 additions & 13 deletions

File tree

dist/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24560,7 +24560,7 @@ function requireLib$1 () {
2456024560
this._maxRetries = 1;
2456124561
this._keepAlive = false;
2456224562
this._disposed = false;
24563-
this.userAgent = userAgent;
24563+
this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
2456424564
this.handlers = handlers || [];
2456524565
this.requestOptions = requestOptions;
2456624566
if (requestOptions) {
@@ -25040,6 +25040,17 @@ function requireLib$1 () {
2504025040
}
2504125041
return proxyAgent;
2504225042
}
25043+
_getUserAgentWithOrchestrationId(userAgent) {
25044+
const baseUserAgent = userAgent || 'actions/http-client';
25045+
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
25046+
if (orchId) {
25047+
// Sanitize the orchestration ID to ensure it contains only valid characters
25048+
// Valid characters: 0-9, a-z, _, -, .
25049+
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
25050+
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`;
25051+
}
25052+
return baseUserAgent;
25053+
}
2504325054
_performExponentialBackoff(retryNumber) {
2504425055
return __awaiter(this, void 0, void 0, function* () {
2504525056
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"author": "Jan-Otto Kröpke",
88
"license": "MIT",
99
"dependencies": {
10-
"@actions/core": "2.0.1",
10+
"@actions/core": "2.0.2",
1111
"@actions/exec": "2.0.0",
12-
"@actions/http-client": "3.0.0",
12+
"@actions/http-client": "3.0.1",
1313
"@actions/tool-cache": "2.0.2",
1414
"semver": "7.7.3"
1515
},

0 commit comments

Comments
 (0)