ci: Authenticate UsePythonVersion requests to Github

This should address the warning in Azure Pipelines

> You should provide GitHub token if you want to download a python release.
> Otherwise you may hit the GitHub anonymous download limit.

The token is provided from a secret variable in the pipeline.
This commit is contained in:
Alex Willmer 2023-10-05 13:26:21 +01:00
parent d839cbfaf2
commit 3f105d5169
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ steps:
- task: UsePythonVersion@0
displayName: Install python
inputs:
githubToken: '$(GITHUB_PYVER_TOKEN)'
versionSpec: '$(python.version)'
condition: ne(variables['python.version'], '')