Skip to content

Commit

Permalink
Update AzureDevOps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelhorak authored Jan 3, 2025
1 parent 46df2e2 commit 2bc41d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/AzureDevOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
client-id: ${{ secrets.ENTRA_APP_CLIENT_ID }}
tenant-id: ${{ secrets.ENTRA_APP_TENANT_ID }}
subscription-id: ${{ secrets.ADO_SUBSCRIPTION_ID }}
- name: Get Azure DevOps token
id: get_ado_token
run:
# - name: Get Azure DevOps token
# id: get_ado_token
# run:
# The resource ID for Azure DevOps is always 499b84ac-1321-427f-aa17-267ca6975798
# https://learn.microsoft.com/azure/devops/integrate/get-started/authentication/service-principal-managed-identity
echo "ado_token=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv)" >> $GITHUB_ENV
# echo "ado_token=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv)" >> $GITHUB_ENV
- uses: pavelhorak/github-actions-issue-to-work-item@main
env:
ado_token: "${{ env.ado_token }}"
ado_token: "$(System.AccessToken)"
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
ado_organization: "${{ secrets.ADO_ORGANIZATION }}"
ado_project: "${{ secrets.ADO_PROJECT }}"
Expand Down

0 comments on commit 2bc41d3

Please sign in to comment.