Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
34 changes: 34 additions & 0 deletions eng/pipelines/templates/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,40 @@ extends:
}
displayName: "Verify Binary Signing"

- job: Verify_VSIX_Signing
displayName: "Verify VSIX Signing"
dependsOn: SignAndPackVSIX
pool:
name: $(WINDOWSPOOL) # Signing verification must happen on windows
image: $(WINDOWSVMIMAGE)
os: windows
variables:
- template: /eng/pipelines/templates/variables/image.yml
- template: /eng/pipelines/templates/variables/globals.yml
steps:
- checkout: none
- download: current
artifact: vsix_$(PipelineArtifactName)_signed
displayName: "Download signed MCP server VSIX files"
- pwsh: |
Write-Host "Verifying signing for win-x64 and win-arm64 VSIX files..."
$allSigned = $true
$signedVsixFiles = Get-ChildItem -Path '$(Pipeline.Workspace)/vsix_$(PipelineArtifactName)_signed/**/win-*' -Recurse -Include "*.signature.p7s"
foreach ($vsix in $signedVsixFiles) {
if ((Get-AuthenticodeSignature -FilePath $vsix.FullName).Status -ne 'Valid') {
Write-Host "VSIX file $($vsix.FullName) is NOT signed correctly."
$allSigned = $false
}
else {
Write-Host "VSIX file $($vsix.FullName) is signed correctly."
}
}
if (-not $allSigned) {
Write-Error "One or more VSIX files are not signed correctly."
exit 1
}
displayName: "Verify VSIX Signing"

- ${{ if eq(parameters.ReleaseRun, 'true') }}:
- stage: Release
dependsOn:
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/sign-and-pack-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
type: string

jobs:
- job:
- job: SignAndPackVSIX
displayName: "Sign and Pack VSIX"
dependsOn: ${{ parameters.DependsOn }}
condition: and(succeeded(), ne(variables['NoPackagesChanged'], 'true'))
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- template: pipelines/steps/azd-vscode-signing.yml@azure-sdk-build-tools
parameters:
Path: $(Build.ArtifactStagingDirectory)
Pattern: '*.signature.p7s'
Pattern: '**/*.signature.p7s'

- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
parameters:
Expand Down
Loading