Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://blog.bartekr.net/2020/09/24/using-the-system-oauth-token-in-azure-devops/ #1

Open
utterances-bot opened this issue Jul 30, 2021 · 5 comments

Comments

@utterances-bot
Copy link

Using the system OAuth token in Azure DevOps - BartekR

https://blog.bartekr.net/2020/09/24/using-the-system-oauth-token-in-azure-devops/

Copy link

Thank you. Very useful.

Copy link

Thank you for this, this fixed my issues with this other tutorial
https://github.com/microsoft/azure-pipelines-ephemeral-agents/blob/0ac11435283d9ad781d2bd2a41a84be910cea676/AgentImages/Readme.md#oauth-token

Copy link

Thanks a lot for this. Spent several hours trying to get this working when I happened upon this and saw the note about "Limit job authorization scope to current project for non-release pipelines"

Copy link

Hello Bartek! I'm trying to enable my “Allow scripts to access the OAuth token” option, but I can't find it anywhere in my azure devops project. Could you guide me to find it? Apparently I'm using a YAML pipeline, but I can't find anywhere this option and I need to map this variable to my docker file restore my nuget packages. Thank you a lot for the tutorial!

Copy link
Owner

BartekR commented Oct 4, 2024

Hi Lorenzo. As I remember (and re-read in documentation) you have the $(System.AccessToken) out of the box for YAML pipeline, and only map it to variable in the task configuration.
Checkbox Allow scripts to access the OAuth token is only for the classic pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants