Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use System.AccessToken instead of github-distro-mixin-password #23166

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
10 changes: 10 additions & 0 deletions build/azure-pipelines/sql-product-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ resources:
image: sqltoolscontainers.azurecr.io/linux-build-agent:6
endpoint: SqlToolsContainers

repositories:
- repository: azuredatastudio-release
type: github
endpoint: CrossPlatBuildScripts
name: microsoft/azuredatastudio-release
- repository: azuredatastudio
type: github
endpoint: CrossPlatBuildScripts
name: microsoft/azuredatastudio

stages:
- stage: Compile
jobs:
Expand Down
20 changes: 5 additions & 15 deletions build/azure-pipelines/sql-product-compile.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
steps:
- checkout: self
persistCredentials: true
- checkout: azuredatastudio-release
- checkout: azuredatastudio

- task: NodeTool@0
inputs:
versionSpec: "16.x"
Expand All @@ -7,22 +12,7 @@ steps:
inputs:
versionSpec: "1.x"

- task: AzureKeyVault@1
displayName: 'Azure Key Vault: Get Secrets'
inputs:
azureSubscription: 'ClientToolsInfra_670062 (88d5392f-a34f-4769-b405-f597fc533613)'
KeyVaultName: ado-secrets

- script: |
set -e
cat << EOF > ~/.netrc
machine github.com
login azuredatastudio
password $(github-distro-mixin-password)
EOF

git config user.email "[email protected]"
git config user.name "AzureDataStudio"
displayName: Prepare tooling

- script: |
Expand Down