-
Hi Team, Could you please help me to find out how we can authenticate gh auth login in azure devops pipeline? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
gh auth login --with-token
is meant more as a command that you would run on your own personal machine to store a token and skip the interactive authentication. However, for automated jobs like those in Azure devops, it's more suitable to set environment variables GH_TOKEN or GITHUB_TOKEN with the value of your token. GitHub CLI will use the token from the environment over any other mode of authentication. Seegh help environment