Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ stages:
python -m pip install -r scripts/repo_health_status_report/dev_requirements.txt
displayName: 'Prep Environment'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- task: PythonScript@0
condition: succeededOrFailed()
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
inputs:
scriptPath: 'scripts/repo_health_status_report/output_health_report.py'
displayName: 'Generate Health Status Report'
Expand All @@ -95,7 +97,7 @@ stages:
- task: PythonScript@0
condition: succeededOrFailed()
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
inputs:
scriptPath: 'scripts/repo_type_completeness/generate_main_typescores.py'
displayName: 'Update Type Completeness Scores'
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/conda-update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@ extends:
- [ ] After upload, delete the dummy libraries and make the new packages publicly available in Conda.
- [ ] Create an AKA link for new release logs here: http://aka.ms/
BaseBranchName: main
AuthToken: ''
2 changes: 2 additions & 0 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
TargetRepoName: $(DocRepoName)
TargetRepoOwner: $(DocRepoOwner)
WorkingDirectory: $(DocRepoLocation)
AuthToken: ''

- task: AzureCLI@2
displayName: Queue Docs CI build for main
Expand Down Expand Up @@ -200,6 +201,7 @@ jobs:
WorkingDirectory: $(DocRepoLocation)
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
PushArgs: -f
AuthToken: ''

- task: AzureCLI@2
displayName: Queue Docs CI build for daily branch
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/prepare-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ extends:
template: /eng/common/pipelines/templates/jobs/prepare-pipelines.yml
parameters:
Repository: Azure/azure-sdk-for-python
AuthToken: ''
4 changes: 3 additions & 1 deletion eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ jobs:
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT]$dotnetroot"
displayName: 'Set DOTNET_ROOT'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ jobs:
container: $[ variables['Container'] ]

steps:
- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/templates/jobs/update_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ steps:
python3 -m pip install -e $(Build.SourcesDirectory)/eng/tools/azure-sdk-tools[ghtools]
displayName: 'Install Azure SDK tools'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- script: python3 -m packaging_tools.update_pr -v --pr-number $(System.PullRequest.PullRequestNumber) --repo $(Build.Repository.Name)
displayName: 'Update packaging of PR'
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
2 changes: 2 additions & 0 deletions eng/pipelines/templates/stages/archetype-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ stages:
ReleaseSha: $(Build.SourceVersion)
RepoId: Azure/azure-sdk-for-python
WorkingDirectory: $(System.DefaultWorkingDirectory)
AuthToken: ''

- ${{if ne(artifact.skipPublishPackage, 'true')}}:
- deployment: PublishPackage
Expand Down Expand Up @@ -352,6 +353,7 @@ stages:
CommitMsg: "Increment package version after release of ${{ artifact.name }}"
PRTitle: "Increment version for ${{ parameters.ServiceDirectory }} releases"
CloseAfterOpenForTesting: '${{ parameters.TestPipeline }}'
AuthToken: ''

- ${{if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'))}}:
- template: /eng/pipelines/templates/jobs/smoke.tests.yml
Expand Down
13 changes: 8 additions & 5 deletions eng/pipelines/templates/stages/python-analyze-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ stages:
- script: |
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- task: PythonScript@0
displayName: 'Run Pylint Next'
continueOnError: true
Expand All @@ -44,7 +47,7 @@ stages:
--disablecov
--filter-type="Omit_management"
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- task: PythonScript@0
displayName: 'Run MyPy Next'
Expand All @@ -57,7 +60,7 @@ stages:
--checks="next-mypy"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- task: PythonScript@0
displayName: 'Run Pyright Next'
Expand All @@ -70,7 +73,7 @@ stages:
--checks="next-pyright"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- script: |
python -m pip install PyGithub>=1.59.0
Expand All @@ -86,7 +89,7 @@ stages:
--service="${{ parameters.ServiceDirectory }}"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- task: UsePythonVersion@0
Expand All @@ -108,4 +111,4 @@ stages:
--service="${{ parameters.ServiceDirectory }}"
--checks="next-sphinx"
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
4 changes: 3 additions & 1 deletion eng/pipelines/templates/steps/build-package-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ parameters:
default: []

steps:
- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/steps/verify-autorest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ steps:
CommitMsg: "Regenerated code from nightly builds"
PRTitle: "Automated autorest generation"
PRBranchName: 'autorest-${{ parameters.ServiceDirectory }}'
AuthToken: ''
1 change: 1 addition & 0 deletions eng/pipelines/trigger-ml-sample-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ jobs:
PRTitle: "SDK Samples Run generated from $(Build.BuildId)"
WorkingDirectory: $(mlrepo)
PRBody: "Check azureml samples against azure-sdk build $(Build.BuildId)."
AuthToken: ''
1 change: 1 addition & 0 deletions eng/pipelines/tsp-spec-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ extends:

Generated from workflow triggered by PR #$(System.PullRequest.PullRequestNumber).
CommitMsg: 'Auto-update TSP client generated code'
AuthToken: ''

3 changes: 2 additions & 1 deletion scripts/release_helper/release_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
versionSpec: '3.10'
addToPath: true
architecture: 'x64'
- template: /eng/common/pipelines/templates/steps/login-to-github.yml
- bash: |
script_path=$(pwd)/scripts/release_helper
cd ..
Expand All @@ -58,7 +59,7 @@ jobs:
git clone -b $(SPEC_BRANCH) https://github.com/Azure/azure-rest-api-specs.git $(pwd)/azure-rest-api-specs

# import env variable
export AZURESDK_BOT_TOKEN=$(azuresdk-github-pat)
export AZURESDK_BOT_TOKEN=$(GH_TOKEN)
export LANGUAGE=$(RUN_LANGUAGE)
export SPEC_REPO=$(pwd)/azure-rest-api-specs/specification
export TYPESPEC_JSON=$(pwd)/file-storage/data/typespec.json
Expand Down