Skip to content

Commit

Permalink
Merged PR 11109364: Update to ESRP CodeSigning task V5
Browse files Browse the repository at this point in the history
Update to ESRP task V5 which eliminates secret usage.

Parameter values to the task can be controlled by this library
https://microsoft.visualstudio.com/WinUI/_apps/hub/ms.vss-distributed-task.hub-library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=5612&path=WinUI2-Signing

This currently points to WindowsAppSDK's ESRP configuration
  • Loading branch information
kythant authored and kmahone committed Jul 17, 2024
1 parent 40f9baa commit 5e3ea2e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
9 changes: 7 additions & 2 deletions build/AzurePipelinesTemplates/MUX-BuildDevProject-Steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ steps:
artifactName: nativecodeanalysis

- ${{ if eq( parameters.signOutput, true) }}:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
displayName: 'CodeSign'
inputs:
ConnectedServiceName: WinUISigning
ConnectedServiceName: $(WinUI2SigningConnectedServiceName)
AppRegistrationClientId: $(WinUI2SigningAppRegistrationClientId)
AppRegistrationTenantId: $(WinUI2SigningAppRegistrationTenantId)
AuthAKVName: $(WinUI2SigningAuthAKVName)
AuthCertName: $(WinUI2SigningAuthCertName)
AuthSignCertName: $(WinUI2SigningAuthSignCertName)
FolderPath: '$(buildOutputDir)/$(buildConfiguration)/$(buildPlatform)/Microsoft.UI.Xaml'
# Recursively finds files matching these patterns:
Pattern: |
Expand Down
9 changes: 7 additions & 2 deletions build/AzurePipelinesTemplates/MUX-CreateNugetPackage-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ jobs:
displayName: 'build-nupkg.ps1'
- ${{ if eq( parameters.signOutput, true) }}:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
displayName: 'CodeSign (nupkg)'
inputs:
ConnectedServiceName: WinUISigning
ConnectedServiceName: $(WinUI2SigningConnectedServiceName)
AppRegistrationClientId: $(WinUI2SigningAppRegistrationClientId)
AppRegistrationTenantId: $(WinUI2SigningAppRegistrationTenantId)
AuthAKVName: $(WinUI2SigningAuthAKVName)
AuthCertName: $(WinUI2SigningAuthCertName)
AuthSignCertName: $(WinUI2SigningAuthSignCertName)
FolderPath: '${{ parameters.nupkgdir }}'
Pattern: |
**/Microsoft.UI.Xaml*.nupkg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
dotNetVersion: 3.1.415
dotNetVersion: 6.0.414

steps:
- task: UseDotNet@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ steps:
displayName: 'Make FrameworkPackages'
- ${{ if eq( parameters.signOutput, true) }}:
- task: EsrpCodeSigning@1
- task: EsrpCodeSigning@5
displayName: First Party StoreSign Framework Package
inputs:
ConnectedServiceName: WinUISigning
ConnectedServiceName: $(WinUI2SigningConnectedServiceName)
AppRegistrationClientId: $(WinUI2SigningAppRegistrationClientId)
AppRegistrationTenantId: $(WinUI2SigningAppRegistrationTenantId)
AuthAKVName: $(WinUI2SigningAuthAKVName)
AuthCertName: $(WinUI2SigningAuthCertName)
AuthSignCertName: $(WinUI2SigningAuthSignCertName)
FolderPath: '${{ parameters.buildOutputDir }}\$(buildConfiguration)\$(buildPlatform)\FrameworkPackage'
Pattern: |
*.appx
Expand Down
9 changes: 7 additions & 2 deletions build/WinUI-OB-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,15 @@ extends:
-BuildFlavor Release
displayName: 'build-nupkg.ps1'
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
displayName: 'CodeSign (nupkg)'
inputs:
ConnectedServiceName: WinUISigning
ConnectedServiceName: $(WinUI2SigningConnectedServiceName)
AppRegistrationClientId: $(WinUI2SigningAppRegistrationClientId)
AppRegistrationTenantId: $(WinUI2SigningAppRegistrationTenantId)
AuthAKVName: $(WinUI2SigningAuthAKVName)
AuthCertName: $(WinUI2SigningAuthCertName)
AuthSignCertName: $(WinUI2SigningAuthSignCertName)
FolderPath: $(nupkgdir)
Pattern: |
**/Microsoft.UI.Xaml*.nupkg
Expand Down

0 comments on commit 5e3ea2e

Please sign in to comment.