Skip to content

Commit

Permalink
add github action permission for id-token fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
dantelmomsft committed Oct 9, 2024
1 parent bf82dff commit 953d5b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/aca-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ on:
container-app-env-name:
required: true
type: string


# Set up permissions for deploying with secretless Azure federated credentials
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
permissions:
id-token: write
contents: read

jobs:
deploy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/acr-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ on:
app-folder-path:
required: true
type: string


# Set up permissions for deploying with secretless Azure federated credentials
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
permissions:
id-token: write
contents: read

jobs:
build:
Expand Down

0 comments on commit 953d5b5

Please sign in to comment.