From 2a6682cfe42d16152f7f05574ac7b468c8b11384 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:20:39 +0000 Subject: [PATCH 1/6] Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 6 +++--- .github/workflows/docs.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bc033d8e..aed863b42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 # needed for Nerdbank.GitVersioning @@ -57,7 +57,7 @@ jobs: runs-on: windows-2025 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 # needed for Nerdbank.GitVersioning @@ -108,7 +108,7 @@ jobs: runs-on: windows-2025 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 # needed for Nerdbank.GitVersioning diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6c2d26aeb..5bfd669bc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Pages uses: actions/configure-pages@v5 From 2b9861417924531ba06450ec41b5aeb982e53adf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:21:33 +0000 Subject: [PATCH 2/6] Bump actions/upload-pages-artifact from 3 to 4 Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6c2d26aeb..c55f01943 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,7 +37,7 @@ jobs: run: docfx ./docfx/docfx.json - name: Upload documentation - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v4 with: path: './docfx/_site' From ff9f34952350ef87a209318688716718b658364e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 14:52:29 +0000 Subject: [PATCH 3/6] Bump actions/download-artifact from 4 to 5 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bc033d8e..00f21507a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,7 +155,7 @@ jobs: - Linux steps: - name: Download NuGet Package - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: name: NuGet Package From 3728c2361dbcba4207916131eab70d02829b0c61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 16:05:10 +0000 Subject: [PATCH 4/6] Bump the dependencies group with 5 updates Bumps Meziantou.Analyzer from 2.0.210 to 2.0.213 Bumps Microsoft.DotNet.ILCompiler from 9.0.7 to 9.0.8 Bumps Microsoft.Extensions.Logging.Console from 9.0.7 to 9.0.8 Bumps MSTest from 3.10.0 to 3.10.3 Bumps Testcontainers from 4.6.0 to 4.7.0 --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-version: 2.0.213 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Microsoft.DotNet.ILCompiler dependency-version: 9.0.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Microsoft.Extensions.Logging.Console dependency-version: 9.0.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: MSTest dependency-version: 3.10.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Testcontainers dependency-version: 4.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 9 ++--- ...enci.SshNet.AotCompatibilityTestApp.csproj | 33 ++++++++++--------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 6ae4272d0..f38690897 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,11 +9,12 @@ - + + - - + + @@ -21,6 +22,6 @@ - + \ No newline at end of file diff --git a/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj b/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj index a18321dae..3597ec265 100644 --- a/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj +++ b/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj @@ -1,16 +1,17 @@ - - - - Exe - net9.0 - true - true - false - - - - - - - - + + + + Exe + net9.0 + true + true + false + + + + + + + + + From 98fb7768d5398d0a30ec642a1349e576b6310ead Mon Sep 17 00:00:00 2001 From: Rob Hague Date: Mon, 22 Sep 2025 21:31:04 +0200 Subject: [PATCH 5/6] fix --- Directory.Packages.props | 11 +++---- ...enci.SshNet.AotCompatibilityTestApp.csproj | 33 +++++++++---------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f38690897..8138199d5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,17 +4,16 @@ false - + - - + - - + + @@ -24,4 +23,4 @@ - \ No newline at end of file + diff --git a/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj b/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj index 3597ec265..a18321dae 100644 --- a/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj +++ b/test/Renci.SshNet.AotCompatibilityTestApp/Renci.SshNet.AotCompatibilityTestApp.csproj @@ -1,17 +1,16 @@ - - - - Exe - net9.0 - true - true - false - - - - - - - - - + + + + Exe + net9.0 + true + true + false + + + + + + + + From 860e264ca65f5076906295085c82f3bed334c0d7 Mon Sep 17 00:00:00 2001 From: Rob Hague Date: Mon, 22 Sep 2025 20:25:19 +0200 Subject: [PATCH 6/6] fix locally failing portforwarding tests port already in use --- test/Renci.SshNet.IntegrationTests/SshTests.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/test/Renci.SshNet.IntegrationTests/SshTests.cs b/test/Renci.SshNet.IntegrationTests/SshTests.cs index 276030e5d..ee9f5d905 100644 --- a/test/Renci.SshNet.IntegrationTests/SshTests.cs +++ b/test/Renci.SshNet.IntegrationTests/SshTests.cs @@ -527,12 +527,9 @@ public void Ssh_LocalPortForwardingCloseChannels() { client.Connect(); - var localEndPoint = new IPEndPoint(IPAddress.Loopback, 1225); - for (var i = 0; i < (connectionInfo.MaxSessions + 1); i++) { - var forwardedPort = new ForwardedPortLocal(localEndPoint.Address.ToString(), - (uint)localEndPoint.Port, + var forwardedPort = new ForwardedPortLocal(IPAddress.Loopback.ToString(), hostNameAlias, 80); client.AddForwardedPort(forwardedPort); @@ -547,7 +544,8 @@ public void Ssh_LocalPortForwardingCloseChannels() using HttpClient httpClient = new(handler); - using HttpResponseMessage httpResponse = httpClient.GetAsync("http://" + localEndPoint).Result; + using HttpResponseMessage httpResponse = httpClient.GetAsync( + $"http://{forwardedPort.BoundHost}:{forwardedPort.BoundPort}").Result; Assert.AreEqual(HttpStatusCode.MovedPermanently, httpResponse.StatusCode); } @@ -583,10 +581,7 @@ public void Ssh_LocalPortForwarding() { client.Connect(); - var localEndPoint = new IPEndPoint(IPAddress.Loopback, 1225); - - var forwardedPort = new ForwardedPortLocal(localEndPoint.Address.ToString(), - (uint)localEndPoint.Port, + var forwardedPort = new ForwardedPortLocal(IPAddress.Loopback.ToString(), hostNameAlias, 80); forwardedPort.Exception += @@ -603,7 +598,8 @@ public void Ssh_LocalPortForwarding() using HttpClient httpClient = new(handler); - using HttpResponseMessage httpResponse = httpClient.GetAsync("http://" + localEndPoint).Result; + using HttpResponseMessage httpResponse = httpClient.GetAsync( + $"http://{forwardedPort.BoundHost}:{forwardedPort.BoundPort}").Result; Assert.AreEqual(HttpStatusCode.MovedPermanently, httpResponse.StatusCode); }