Skip to content

Commit

Permalink
Use V5 ESRP task with backing MI + AKV (dotnet#102542)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyosjs authored May 23, 2024
1 parent f154497 commit 0778285
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions eng/pipelines/coreclr/templates/sign-diagnostic-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@ parameters:
timeoutInMinutes: ''

steps:
- ${{ if and(eq(parameters.isOfficialBuild, true), ne(variables['Build.Reason'], 'PullRequest'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'))) }}:
- ${{ if and(eq(parameters.isOfficialBuild, true), ne(variables['Build.Reason'], 'PullRequest'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/reltest/'))) }}:
- task: UseDotNet@2
displayName: Install .NET 6 SDK for signing.
inputs:
packageType: 'sdk'
version: '6.0.x'
installationPath: '$(Agent.TempDirectory)/dotnet'

- task: EsrpCodeSigning@4
- task: EsrpCodeSigning@5
displayName: Sign Diagnostic Binaries
inputs:
ConnectedServiceName: 'dotnetesrp-diagnostics-dnceng'
ConnectedServiceName: 'diagnostics-esrp-kvcertuser'
AppRegistrationClientId: '2234cdec-a13f-4bb2-aa63-04c57fd7a1f9'
AppRegistrationTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
AuthAKVName: 'clrdiag-esrp-id'
AuthCertName: 'dotnetesrp-diagnostics-aad-ssl-cert'
AuthSignCertName: 'dotnet-diagnostics-esrp-pki-onecert'
FolderPath: ${{ parameters.basePath }}
Pattern: |
**/mscordaccore*.dll
Expand Down

0 comments on commit 0778285

Please sign in to comment.