From 4a43d5d8053721a322943133b6c0425eedb9bd5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 10:30:56 +0200 Subject: [PATCH] Bump @actions/http-client from 1.0.9 to 1.0.11 (#218) * Bump @actions/http-client from 1.0.9 to 1.0.11 Bumps [@actions/http-client](https://github.com/actions/http-client) from 1.0.9 to 1.0.11. - [Release notes](https://github.com/actions/http-client/releases) - [Changelog](https://github.com/actions/http-client/blob/main/RELEASES.md) - [Commits](https://github.com/actions/http-client/commits) Signed-off-by: dependabot[bot] * Update generated content Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> Co-authored-by: CrazyMax --- dist/index.js | 4 +++- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index a853e3c..5b67d76 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1675,7 +1675,9 @@ class HttpClient { maxSockets: maxSockets, keepAlive: this._keepAlive, proxy: { - proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`, + ...((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), host: proxyUrl.hostname, port: proxyUrl.port } diff --git a/package.json b/package.json index 64f17fe..39a2ea0 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@actions/core": "^1.2.6", "@actions/exec": "^1.0.4", - "@actions/http-client": "^1.0.9", + "@actions/http-client": "^1.0.11", "@actions/tool-cache": "^1.6.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 978572a..0b66842 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14,10 +14,10 @@ dependencies: "@actions/io" "^1.0.1" -"@actions/http-client@^1.0.8", "@actions/http-client@^1.0.9": - version "1.0.9" - resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.9.tgz#af1947d020043dbc6a3b4c5918892095c30ffb52" - integrity sha512-0O4SsJ7q+MK0ycvXPl2e6bMXV7dxAXOGjrXS1eTF9s2S401Tp6c/P3c3Joz04QefC1J6Gt942Wl2jbm3f4mLcg== +"@actions/http-client@^1.0.11", "@actions/http-client@^1.0.8": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0" + integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg== dependencies: tunnel "0.0.6"