@@ -77,20 +77,15 @@ jobs:
77
77
arguments : ' build.proj /t:Build /p:Configuration=Release;TurnOnTestCoverage=true;ModifiedModuleBuild=true'
78
78
79
79
- task : EsrpCodeSigning@4
80
+ displayName : " Sign Dll [Authenticode + Strong Name]"
80
81
inputs :
81
82
ConnectedServiceName : ' $(signServiceConnection)'
82
83
FolderPath : ' artifacts'
83
84
Pattern : |
84
- Release/**/Microsoft*Azure*PowerShell*Cmdlets*.dll
85
- Release/**/Microsoft.Azure.PowerShell.*.Sdk.dll
85
+ Release/**/Microsoft*Azure*PowerShell*.dll
86
86
Release/**/Az.*.private.dll
87
- Release/**/Microsoft.Azure.PowerShell.AssemblyLoading.dll
88
- Release/**/Microsoft.Azure.PowerShell.Authentication.dll
89
- Release/**/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
90
- Release/**/Microsoft.Azure.PowerShell.Authenticators.dll
91
- Release/**/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll
92
87
Release/**/Microsoft.Azure.Commands.*.AlcWrapper.dll
93
- !Release/**/Microsoft*Azure*PowerShell*Cmdlets*.Test .dll
88
+ InstallerChecks .dll
94
89
UseMinimatch : true
95
90
signConfigType : ' inlineSignParams'
96
91
inlineOperation : |
@@ -133,7 +128,42 @@ jobs:
133
128
SessionTimeout : ' 60'
134
129
MaxConcurrency : ' 50'
135
130
MaxRetryAttempts : ' 5'
136
-
131
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@4
132
+ displayName : " Sign Scripts [Authenticode]"
133
+ inputs :
134
+ ConnectedServiceName : ' $(signServiceConnection)'
135
+ FolderPath : ' artifacts'
136
+ Pattern : |
137
+ Release/**/*.ps1
138
+ Release/**/*.psm1
139
+ Release/**/*.ps1xml
140
+ Release/**/*.js
141
+ InstallModule.ps1
142
+ UseMinimatch : true
143
+ signConfigType : inlineSignParams
144
+ inlineOperation : |
145
+ [
146
+ {
147
+ "KeyCode": "CP-230012",
148
+ "OperationCode": "SigntoolSign",
149
+ "Parameters": {
150
+ "OpusName": "Microsoft",
151
+ "OpusInfo": "http://www.microsoft.com",
152
+ "FileDigest": "/fd \"SHA256\"",
153
+ "PageHash": "/NPH",
154
+ "TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
155
+ },
156
+ "ToolName": "sign",
157
+ "ToolVersion": "1.0"
158
+ },
159
+ {
160
+ "KeyCode": "CP-230012",
161
+ "OperationCode": "SigntoolVerify",
162
+ "Parameters": {},
163
+ "ToolName": "sign",
164
+ "ToolVersion": "1.0"
165
+ }
166
+ ]
137
167
- task : EsrpCodeSigning@4
138
168
displayName : ' Sign 3rd Party [Strong Name]'
139
169
inputs :
0 commit comments