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.
pull/1027/head
Alex Willmer 1 year ago
parent d839cbfaf2
commit 3f105d5169

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

Loading…
Cancel
Save