jycouet / VSTSExtensions

MIT License
30 stars 11 forks source link

Users should not have to enter a personal access token #1

Closed DavidParks8 closed 6 years ago

DavidParks8 commented 6 years ago

There is already an option Allow scripts to access OAuth token in a build definition. That is the way that other tasks access protected resources (provided the build identity has the proper permissions). It seems unnecessary additional setup to have to generate a custom PAT.

jycouet commented 6 years ago

Hi @DavidParks8 Thanks for the info, I'll have a look.

DavidParks8 commented 6 years ago

An example of how to use it can be found at https://github.com/Microsoft/vsts-tasks/blob/57cd7604cfea18cd7ca82cb20c6c6921f9785d6e/Tasks/DotNetCoreCLI/restorecommand.ts#L50

jycouet commented 6 years ago

Thank you again. It's fixed with commit: https://github.com/jycouet/VSTSExtensions/commit/9924fdf2e36c97a5321ad873486a465f357f143e