Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ updates:
directory: "/test/Renci.SshNet.IntegrationTests/"
schedule:
interval: "monthly"
cooldown:
default-days: 7

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "monthly"
ignore: # See justifications in Directory.Packages.props
- dependency-name: "Microsoft.Bcl.AsyncInterfaces"

- dependency-name: "System.Formats.Asn1"
update-types: ["version-update:semver-major"]

Expand All @@ -26,8 +26,12 @@ updates:
dependencies:
patterns:
- "*"
cooldown:
default-days: 7

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
cooldown:
default-days: 7
55 changes: 34 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
name: Build

on:
- push
- pull_request
- workflow_dispatch
push:
branches-ignore:
- 'dependabot/**'
- 'copilot/**'
pull_request:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read

jobs:
Linux:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # needed for Nerdbank.GitVersioning
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

- name: Build Unit Tests .NET
run: dotnet build -f net10.0 test/Renci.SshNet.Tests/
Expand Down Expand Up @@ -48,7 +57,7 @@ jobs:
test/Renci.SshNet.IntegrationTests/

- name: Archive Coverlet Results
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Coverlet Results Linux
path: coverlet
Expand All @@ -57,12 +66,13 @@ jobs:
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # needed for Nerdbank.GitVersioning
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

- name: Build Solution
run: dotnet build Renci.SshNet.slnx
Expand All @@ -74,7 +84,7 @@ jobs:
run: dotnet pack

- name: Archive NuGet Package
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: NuGet Package
path: src/Renci.SshNet/bin/Release/*.*nupkg
Expand Down Expand Up @@ -108,15 +118,16 @@ jobs:
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # needed for Nerdbank.GitVersioning
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

- name: Setup WSL2
uses: Vampire/setup-wsl@6a8db447be7ed35f2f499c02c6e60ff77ef11278 # v6.0.0
uses: Vampire/setup-wsl@d1da7f2c0322a5ee4f24975344f67fc0f5baf364 # 7.0.0
with:
distribution: Ubuntu-24.04

Expand All @@ -140,7 +151,7 @@ jobs:
test\Renci.SshNet.IntegrationTests\

- name: Archive Coverlet Results
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Coverlet Results Windows .NET Framework
path: coverlet
Expand All @@ -150,15 +161,16 @@ jobs:
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # needed for Nerdbank.GitVersioning
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

- name: Setup WSL2
uses: Vampire/setup-wsl@6a8db447be7ed35f2f499c02c6e60ff77ef11278 # v6.0.0
uses: Vampire/setup-wsl@d1da7f2c0322a5ee4f24975344f67fc0f5baf364 # v7.0.0
with:
distribution: Ubuntu-24.04

Expand All @@ -182,7 +194,7 @@ jobs:
test\Renci.SshNet.IntegrationTests\

- name: Archive Coverlet Results
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Coverlet Results Windows .NET
path: coverlet
Expand All @@ -200,7 +212,7 @@ jobs:
- Windows-Integration-Tests-Net
steps:
- name: Download NuGet Package
uses: actions/download-artifact@v7
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: NuGet Package

Expand All @@ -219,7 +231,8 @@ jobs:
Publish-NuGet-Package:
name: Publish NuGet Package
runs-on: ubuntu-24.04
if: startsWith(github.event.ref, 'refs/tags/20')
if: github.event_name == 'release'
environment: nuget-publish
permissions:
id-token: write
needs:
Expand All @@ -229,12 +242,12 @@ jobs:
- Windows-Integration-Tests-Net
steps:
- name: Download NuGet Package
uses: actions/download-artifact@v7
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: NuGet Package

- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544 # v1.1.0
id: login
with:
user: ${{ secrets.NUGET_USER }}
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

- name: Setup docfx
run: dotnet tool update -g docfx
Expand All @@ -37,10 +39,10 @@ jobs:
run: docfx ./docfx/docfx.json

- name: Upload documentation
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: './docfx/_site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0