ms.topic | ms.technology | ms.manager | ms.author | author | ms.date |
---|---|---|---|---|---|
include |
devops-cicd |
mijacobs |
jukullam |
juliakm |
10/25/2022 |
Use a personal access token (PAT) to connect your GitHub account to Azure DevOps. You can generate a PAT from within Azure DevOps and then store it as a GitHub secret. Within your GitHub workflow, reference the secret so that your GitHub action can authenticate with your Azure DevOps project.
-
Open your GitHub repository and go to Settings.
-
Select Security > Secrets and variables > Actions.
:::image type="content" source="../media/github-select-actions.png" alt-text="Choose to add a secret":::
-
Paste in your PAT and give it the name
AZURE_DEVOPS_TOKEN
. -
Select Add secret.