Skip to content

Commit a735e6e

Browse files
authored
Use low-privilege secrets in import-image pipeline (#1849)
1 parent 6c8d756 commit a735e6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eng/pipelines/import-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ parameters:
2020

2121
variables:
2222
- template: /eng/pipelines/templates/variables/common.yml@self
23-
# Uses DockerHub registry creds to avoid rate limiting
24-
- template: /eng/common/templates/variables/dotnet/secrets.yml@self
2523
- ${{ if eq(parameters.isDockerHubImage, 'true') }}:
24+
# Uses DockerHub registry credentials to avoid rate limiting
25+
- group: Dotnet-Docker-Secrets-Low
2626
- name: normalizedImageName
2727
value: ${{ format('docker.io/{0}', parameters.imageName) }}
2828
- name: extraImportOptions
29-
value: --username $(dotnetDockerHubBot.userName) --password $(BotAccount-dotnet-dockerhub-bot-PAT)
29+
value: --username $(dotnet-dockerhub-bot-username) --password $(dotnet-dockerhub-bot-pat-low)
3030
- ${{ else }}:
3131
- name: normalizedImageName
3232
value: ${{ parameters.imageName }}

0 commit comments

Comments
 (0)