Skip to content

Commit 953d5b5

Browse files
committed
add github action permission for id-token fix2
1 parent bf82dff commit 953d5b5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/aca-deploy.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ on:
1414
container-app-env-name:
1515
required: true
1616
type: string
17-
17+
18+
# Set up permissions for deploying with secretless Azure federated credentials
19+
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
20+
permissions:
21+
id-token: write
22+
contents: read
1823

1924
jobs:
2025
deploy:

.github/workflows/acr-build-push.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ on:
1111
app-folder-path:
1212
required: true
1313
type: string
14-
14+
15+
# Set up permissions for deploying with secretless Azure federated credentials
16+
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
17+
permissions:
18+
id-token: write
19+
contents: read
1520

1621
jobs:
1722
build:

0 commit comments

Comments
 (0)