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:
parent
d839cbfaf2
commit
3f105d5169
|
@ -9,6 +9,7 @@ steps:
|
|||
- task: UsePythonVersion@0
|
||||
displayName: Install python
|
||||
inputs:
|
||||
githubToken: '$(GITHUB_PYVER_TOKEN)'
|
||||
versionSpec: '$(python.version)'
|
||||
condition: ne(variables['python.version'], '')
|
||||
|
||||
|
|
Loading…
Reference in New Issue