Skip to content

Commit 3100c5d

Browse files
authored
Update GitHub Actions workflow with permissions and validation
Added permissions for id-token, contents, and issues. Included a step to validate Workload Identity authentication.
1 parent 48d1b29 commit 3100c5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ name: "Copilot Setup Steps"
55
on:
66
workflow_dispatch:
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
issues: write
12+
813
env:
914
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
1015
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
@@ -37,3 +42,8 @@ jobs:
3742
client-id: ${{ secrets.ARM_CLIENT_ID }}
3843
tenant-id: ${{ secrets.ARM_TENANT_ID }}
3944
subscription-id: ${{ secrets.ARM_SUBSCRIPTION_ID }}
45+
46+
- name: Validate Workload Identity Auth Works
47+
run: |
48+
az account show
49+
az group list

0 commit comments

Comments
 (0)