Fix workflows

This commit is contained in:
Michael Grafnetter
2026-03-11 18:12:17 +01:00
parent acd425e321
commit 5a85972fe4
6 changed files with 101 additions and 33 deletions
+24 -17
View File
@@ -23,10 +23,10 @@ jobs:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
cache: true
cache-dependency-path: 'Src/*/packages.lock.json'
@@ -40,10 +40,10 @@ jobs:
dotnet build --configuration Debug --no-restore
- name: Publish PasskeyUI (win-x64)
run: dotnet publish --runtime win-x64 --no-restore --no-build
run: dotnet publish --configuration Release --runtime win-x64 --no-restore
- name: Upload Desktop App as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: PasskeyUI
path: Build/publish/PasskeyUI/release_net10.0-windows_win-x64/*
@@ -67,7 +67,7 @@ jobs:
run: Src/DSInternals.Passkeys/Test.ps1 -ModulePath "${{github.workspace}}/Build/bin/PSModule/Release/DSInternals.Passkeys"
- name: Upload PowerShell Module as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: PowerShell
path: Build/bin/PSModule/Release/*
@@ -76,7 +76,7 @@ jobs:
run: dotnet pack --configuration Release --no-build
- name: Upload NuGet Packages as Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: NuGet
path: Build/package/release/*nupkg
@@ -93,7 +93,7 @@ jobs:
- name: Cache DotNet Global Tools
id: cache-dotnet-globaltools
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.dotnet/tools
# Heuristics: The current list of required global tools is defined in this workflow file.
@@ -108,7 +108,7 @@ jobs:
run: reportgenerator -reports:*/coverage.cobertura.xml -targetdir:. -reporttypes:"HtmlSummary" -title:"WebAuthn Interop Assembly"
- name: Upload Test Results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: TestResults
path: |
@@ -116,29 +116,36 @@ jobs:
!**/*.htm
analyze:
name: CodeQL
name: Analyze (${{ matrix.language }})
runs-on: windows-latest
permissions:
security-events: write
packages: read
# only required for workflows in private repositories
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
include:
- language: actions
build-mode: none
- language: csharp
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
build-mode: ${{ matrix.build-mode }}
queries: code-scanning # Options: code-scanning, security-extended, security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
+13 -13
View File
@@ -50,7 +50,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore Strong Name Key
if: ${{ inputs.strong_name_sign }}
@@ -71,7 +71,7 @@ jobs:
}
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
cache: true
cache-dependency-path: 'Src/*/packages.lock.json'
@@ -83,7 +83,7 @@ jobs:
run: dotnet build --configuration Release --no-restore
- name: Publish PasskeyUI (win-x64)
run: dotnet publish --runtime win-x64 --no-restore --no-build
run: dotnet publish --configuration Release --runtime win-x64 --no-restore
- name: Build PowerShell Module
working-directory: Scripts
@@ -92,7 +92,7 @@ jobs:
- name: Cache DotNet Global Tools
id: cache-dotnet-globaltools
uses: actions/cache@v4
uses: actions/cache@v5
if: ${{ inputs.certificate_sign }}
with:
path: ~/.dotnet/tools
@@ -182,13 +182,13 @@ jobs:
xcopy "DSInternals.Win32.WebAuthn/release_net8.0-windows/DSInternals.Win32.WebAuthn.dll" "PSModule/Release/DSInternals.Passkeys/net8.0-windows/" /Y /I /F
- name: Upload Desktop App as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: PasskeyUI
path: Build/publish/PasskeyUI/release_net10.0-windows_win-x64/*
- name: Upload PowerShell Module as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: PowerShell
path: Build/bin/PSModule/Release
@@ -212,7 +212,7 @@ jobs:
--verbosity Information
- name: Upload NuGet Packages as Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: NuGet
path: Build/package/release/*nupkg
@@ -224,12 +224,12 @@ jobs:
needs: build
steps:
- name: Download NuGet Packages
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: NuGet
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.x
@@ -244,7 +244,7 @@ jobs:
needs: build
steps:
- name: Download PowerShell Module
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: PowerShell
@@ -260,16 +260,16 @@ jobs:
needs: build
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Download PowerShell Module
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: PowerShell
path: GitHub/Module
- name: Download Desktop App
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: PasskeyUI
path: GitHub/PasskeyUI
@@ -253,6 +253,25 @@
"Microsoft.IdentityModel.Tokens": "8.15.0"
}
}
},
"net10.0-windows7.0/win-x64": {
"Microsoft.Testing.Extensions.CodeCoverage": {
"type": "Direct",
"requested": "[18.1.0, )",
"resolved": "18.1.0",
"contentHash": "FJUCocHSPSjbeoGE/OojOhVUXwDng3VdNlwqzif9hMS2eFcG0f8RdjLM537aBsjP7zLHvGnWXbnUnc61v/EFCA==",
"dependencies": {
"Microsoft.DiaSymReader": "2.0.0",
"Microsoft.Extensions.DependencyModel": "6.0.2",
"Microsoft.Testing.Platform": "2.0.0"
}
},
"System.Diagnostics.EventLog": {
"type": "CentralTransitive",
"requested": "[9.0.3, )",
"resolved": "9.0.3",
"contentHash": "0nDJBZ06DVdTG2vvCZ4XjazLVaFawdT0pnji23ISX8I8fEOlRJyzH2I0kWiAbCtFwry2Zir4qE4l/GStLATfFw=="
}
}
}
}
@@ -133,6 +133,14 @@
"Microsoft.IdentityModel.Tokens": "8.15.0"
}
}
},
"net10.0-windows7.0/win-x64": {
"System.Diagnostics.EventLog": {
"type": "CentralTransitive",
"requested": "[9.0.3, )",
"resolved": "9.0.3",
"contentHash": "0nDJBZ06DVdTG2vvCZ4XjazLVaFawdT0pnji23ISX8I8fEOlRJyzH2I0kWiAbCtFwry2Zir4qE4l/GStLATfFw=="
}
}
}
}
@@ -389,7 +389,7 @@
}
}
},
".NETFramework,Version=v4.8/win-x86": {
".NETFramework,Version=v4.8/win-x64": {
"Microsoft.Testing.Extensions.CodeCoverage": {
"type": "Direct",
"requested": "[18.1.0, )",
@@ -640,7 +640,7 @@
}
}
},
"net10.0-windows7.0/win-x86": {
"net10.0-windows7.0/win-x64": {
"Microsoft.Testing.Extensions.CodeCoverage": {
"type": "Direct",
"requested": "[18.1.0, )",
@@ -919,7 +919,7 @@
}
}
},
"net8.0-windows7.0/win-x86": {
"net8.0-windows7.0/win-x64": {
"Microsoft.Testing.Extensions.CodeCoverage": {
"type": "Direct",
"requested": "[18.1.0, )",
@@ -254,6 +254,7 @@
"contentHash": "+RJT4qaekpZ7DDLhf+LTjq+E48jieKiY9ulJ+BoxKmZblIJfIJT8Ufcaa/clQqnYvWs8jugfGSMu8ylS0caG0w=="
}
},
".NETFramework,Version=v4.8/win-x64": {},
"net10.0-windows7.0": {
"Microsoft.Identity.Client": {
"type": "Direct",
@@ -403,6 +404,20 @@
"contentHash": "fpRTBsYACMp7NvTECauYRomubWTC3vUNw4hMXdIedP8ctBGK6tea9HOJwE+qVzis6MZYkL3LIs8qeY3rc6Jdlw=="
}
},
"net10.0-windows7.0/win-x64": {
"System.Diagnostics.EventLog": {
"type": "Direct",
"requested": "[9.0.3, )",
"resolved": "9.0.3",
"contentHash": "0nDJBZ06DVdTG2vvCZ4XjazLVaFawdT0pnji23ISX8I8fEOlRJyzH2I0kWiAbCtFwry2Zir4qE4l/GStLATfFw=="
},
"System.Security.Cryptography.Cng": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "jIMXsKn94T9JY7PvPq/tMfqa6GAaHpElRDpmG+SuL+D3+sTw2M8VhnibKnN8Tq+4JqbPJ/f+BwtLeDMEnzAvRg=="
}
},
"net8.0-windows7.0": {
"Microsoft.Identity.Client": {
"type": "Direct",
@@ -565,6 +580,25 @@
"resolved": "10.0.1",
"contentHash": "cVAka0o1rJJ5/De0pjNs7jcaZk5hUGf1HGzUyVmE2MEB1Vf0h/8qsWxImk1zjitCbeD2Avaq2P2+usdvqgbeVQ=="
}
},
"net8.0-windows7.0/win-x64": {
"System.Diagnostics.EventLog": {
"type": "Direct",
"requested": "[9.0.3, )",
"resolved": "9.0.3",
"contentHash": "0nDJBZ06DVdTG2vvCZ4XjazLVaFawdT0pnji23ISX8I8fEOlRJyzH2I0kWiAbCtFwry2Zir4qE4l/GStLATfFw=="
},
"System.Security.Cryptography.Cng": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "jIMXsKn94T9JY7PvPq/tMfqa6GAaHpElRDpmG+SuL+D3+sTw2M8VhnibKnN8Tq+4JqbPJ/f+BwtLeDMEnzAvRg=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "10.0.1",
"contentHash": "cVAka0o1rJJ5/De0pjNs7jcaZk5hUGf1HGzUyVmE2MEB1Vf0h/8qsWxImk1zjitCbeD2Avaq2P2+usdvqgbeVQ=="
}
}
}
}