Skip to content

Commit 3fff599

Browse files
authored
Sign third party assemblies (#50)
1 parent 516c92a commit 3fff599

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.azure-pipelines/sign-package.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,39 @@ steps:
6161
}
6262
]
6363
64+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
65+
displayName: '3rd Party Signing [Authenticode]'
66+
inputs:
67+
ConnectedServiceName: $(signServiceConnection)
68+
FolderPath: artifacts
69+
Pattern: |
70+
Az.Tools.Migration/Resources/Assembly/**/*.dll
71+
UseMinimatch: true
72+
signConfigType: inlineSignParams
73+
inlineOperation: |
74+
[
75+
{
76+
"KeyCode": "CP-231522",
77+
"OperationCode": "SigntoolSign",
78+
"Parameters": {
79+
"OpusName": "Microsoft",
80+
"OpusInfo": "http://www.microsoft.com",
81+
"FileDigest": "/fd \"SHA256\"",
82+
"PageHash": "/NPH",
83+
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
84+
},
85+
"ToolName": "sign",
86+
"ToolVersion": "1.0"
87+
},
88+
{
89+
"KeyCode": "CP-231522",
90+
"OperationCode": "SigntoolVerify",
91+
"Parameters": {},
92+
"ToolName": "sign",
93+
"ToolVersion": "1.0"
94+
}
95+
]
96+
6497
- task: DotNetCoreCLI@2
6598
displayName: Package
6699
inputs:

0 commit comments

Comments
 (0)