Skip to content

Commit

Permalink
Replace account based SAS with dSAS (#4756)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche authored Jun 24, 2024
1 parent 0ede436 commit f9c76c5
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion eng/pipelines/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ stages:
variables:
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
- group: DotNet-Diagnostics-Storage
- group: DotNetBuilds storage account read tokens
- group: Release-Pipeline
steps:
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
Expand All @@ -30,6 +29,29 @@ stages:
version: 6.x
installationPath: '$(Build.Repository.LocalPath)\.dotnet'
- template: /eng/common/templates/post-build/setup-maestro-vars.yml

# Populate dotnetbuilds-internal-container-read-token
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
parameters:
federatedServiceConnection: 'dotnetbuilds-internal-read'
outputVariableName: 'dotnetbuilds-internal-checksums-container-read-token'
expiryInHours: 1
base64Encode: false
storageAccount: dotnetbuilds
container: internal-checksums
permissions: rl

# Populate dotnetbuilds-internal-container-read-token
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
parameters:
federatedServiceConnection: 'dotnetbuilds-internal-read'
outputVariableName: 'dotnetbuilds-internal-container-read-token'
expiryInHours: 1
base64Encode: false
storageAccount: dotnetbuilds
container: internal
permissions: rl

- task: AzureCLI@2
displayName: 'DARC Gather build'
inputs:
Expand Down

0 comments on commit f9c76c5

Please sign in to comment.