Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-piplines: Add extra verification step after signing #1791

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Changes from all commits
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
14 changes: 14 additions & 0 deletions azure-pipelines/templates/sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,23 @@ steps:
condition: eq(variables['signprojExists'], True)
displayName: "\U0001F449 Generate extension manifest"

# this task will pass even if signing fails, so we follow it up with a check to see if the signature file was created
- task: DotNetCoreCLI@2
condition: eq(variables['signprojExists'], True)
displayName: "\U0001F449 Sign with MSBuild"
inputs:
command: 'build'
projects: $(Build.SourcesDirectory)/.azure-pipelines/SignExtension.signproj

- pwsh: |
$filePath = "extension.signature.p7s"

if (-Not (Test-Path $filePath)) {
Write-Error "The file '$filePath' does not exist."
exit 1
}

Write-Output "The file '$filePath' exists."
exit 0
displayName: "\U0001F449 Verify extension.signature.p7s file was created"
condition: eq(variables['signprojExists'], True)
Loading