Skip to content

Commit f9c76c5

Browse files
authored
Replace account based SAS with dSAS (#4756)
1 parent 0ede436 commit f9c76c5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

eng/pipelines/prepare-release.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ stages:
1515
variables:
1616
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
1717
- group: DotNet-Diagnostics-Storage
18-
- group: DotNetBuilds storage account read tokens
1918
- group: Release-Pipeline
2019
steps:
2120
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
@@ -30,6 +29,29 @@ stages:
3029
version: 6.x
3130
installationPath: '$(Build.Repository.LocalPath)\.dotnet'
3231
- template: /eng/common/templates/post-build/setup-maestro-vars.yml
32+
33+
# Populate dotnetbuilds-internal-container-read-token
34+
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
35+
parameters:
36+
federatedServiceConnection: 'dotnetbuilds-internal-read'
37+
outputVariableName: 'dotnetbuilds-internal-checksums-container-read-token'
38+
expiryInHours: 1
39+
base64Encode: false
40+
storageAccount: dotnetbuilds
41+
container: internal-checksums
42+
permissions: rl
43+
44+
# Populate dotnetbuilds-internal-container-read-token
45+
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
46+
parameters:
47+
federatedServiceConnection: 'dotnetbuilds-internal-read'
48+
outputVariableName: 'dotnetbuilds-internal-container-read-token'
49+
expiryInHours: 1
50+
base64Encode: false
51+
storageAccount: dotnetbuilds
52+
container: internal
53+
permissions: rl
54+
3355
- task: AzureCLI@2
3456
displayName: 'DARC Gather build'
3557
inputs:

0 commit comments

Comments
 (0)