Skip to content

Commit da4e3fb

Browse files
committed
updated the signing step
1 parent 3650b77 commit da4e3fb

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

.azdo/pipelines/steps/package-signing.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ steps:
2323
arguments: '-packagePath "${{ parameters.PackagesPath }}"'
2424
Write-Host "Pattern: $(${{ parameters.PackagesPath }})"
2525

26-
# ESRP CodeSigning - Sign AzureHealth DLLs
27-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
28-
displayName: 'ESRP CodeSigning - Sign AzureHealth DLLs'
26+
- task: EsrpCodeSigning@1
27+
displayName: 'Sign Package DLLs'
2928
inputs:
3029
ConnectedServiceName: 'Code_Signing'
3130
AppRegistrationClientId: '83032b7a-1253-4736-84b0-3899f3b0cfa1'
@@ -34,18 +33,15 @@ steps:
3433
AuthCertName: 'test-toolkit-cert-2025'
3534
AuthSignCertName: 'test-toolkit-cert-2025'
3635
FolderPath: '${{ parameters.PackagesPath }}'
37-
Pattern: 'Microsoft.AzureHealth.DataServices.Channels.Extensions.dll'
38-
SessionTimeout: 90
39-
ServiceEndpointUrl: 'https://api.esrp.microsoft.com/api/v2'
40-
MaxConcurrency: 25
41-
UseMSIAuthentication: true
36+
Pattern: 'Microsoft.AzureHealth.DataServices.*.dll,Microsoft.Capl.*.dll'
37+
UseMinimatch: false
4238
signConfigType: 'inlineSignParams'
4339
inlineOperation: |
4440
[
4541
{
46-
"KeyCode": "CP-230012",
47-
"OperationCode": "SigntoolSign",
48-
"Parameters": [
42+
"keyCode": "CP-230012",
43+
"operationCode": "SigntoolSign",
44+
"parameters": [
4945
{
5046
"parameterName": "OpusName",
5147
"parameterValue": "Microsoft"
@@ -67,15 +63,15 @@ steps:
6763
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
6864
}
6965
],
70-
"ToolName": "sign",
71-
"ToolVersion": "1.0"
66+
"toolName": "sign",
67+
"toolVersion": "1.0"
7268
},
7369
{
74-
"KeyCode": "CP-230012",
75-
"OperationCode": "SigntoolVerify",
76-
"Parameters": [ ],
77-
"ToolName": "sign",
78-
"ToolVersion": "1.0"
70+
"keyCode": "CP-230012",
71+
"operationCode": "SigntoolVerify",
72+
"parameters": [ ],
73+
"toolName": "sign",
74+
"toolVersion": "1.0"
7975
}
8076
]
8177
# Repackage with signed dlls
@@ -93,9 +89,8 @@ steps:
9389
contents: '*.snupkg'
9490
targetFolder: ${{ parameters.PackagesPath }}-signed
9591

96-
# Sign Packages
97-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
98-
displayName: 'ESRP CodeSigning - Sign Nuget Packages'
92+
- task: EsrpCodeSigning@1
93+
displayName: 'Sign Nuget Packages'
9994
inputs:
10095
ConnectedServiceName: 'Code_Signing'
10196
AppRegistrationClientId: '83032b7a-1253-4736-84b0-3899f3b0cfa1'
@@ -105,6 +100,7 @@ steps:
105100
AuthSignCertName: 'test-toolkit-cert-2025'
106101
FolderPath: '${{ parameters.PackagesPath }}-signed/'
107102
Pattern: 'Microsoft.AzureHealth.DataServices*.nupkg,Microsoft.Capl*.nupkg'
103+
UseMinimatch: false
108104
SessionTimeout: 90
109105
ServiceEndpointUrl: 'https://api.esrp.microsoft.com/api/v2'
110106
MaxConcurrency: 25
@@ -113,17 +109,17 @@ steps:
113109
inlineOperation: |
114110
[
115111
{
116-
"KeyCode": "CP-401405",
117-
"OperationCode": "NuGetSign",
118-
"Parameters": [ ],
119-
"ToolName": "sign",
120-
"ToolVersion": "1.0"
112+
"keyCode": "CP-401405",
113+
"operationCode": "NuGetSign",
114+
"parameters": [ ],
115+
"toolName": "sign",
116+
"toolVersion": "1.0"
121117
},
122118
{
123-
"KeyCode": "CP-401405",
124-
"OperationCode": "NuGetVerify",
125-
"Parameters": [ ],
126-
"ToolName": "sign",
127-
"ToolVersion": "1.0"
119+
"keyCode": "CP-401405",
120+
"operationCode": "NuGetVerify",
121+
"parameters": [ ],
122+
"toolName": "sign",
123+
"toolVersion": "1.0"
128124
}
129125
]

0 commit comments

Comments
 (0)