Skip to content

Commit 21ae711

Browse files
committed
Add id-token permission
1 parent ed61231 commit 21ae711

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.github/workflows/push-again.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
description: 'Image ID'
1212
required: true
1313

14+
permissions:
15+
id-token: write
16+
1417
jobs:
1518
build-and-push:
1619
name: Build and push images
@@ -51,7 +54,7 @@ jobs:
5154
- name: Log into ACR
5255
run: |
5356
az acr login --name ${{secrets.ACR_REGISTRY_NAME}}
54-
57+
5558
- name: Build and push
5659
id: build_and_push
5760
env:

.github/workflows/push-dev.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
schedule:
66
- cron: '0 14 * * MON'
77

8+
permissions:
9+
id-token: write
10+
11+
812
jobs:
913
build-and-push:
1014
name: Build and push
@@ -36,7 +40,7 @@ jobs:
3640
client-id: ${{secrets.ACR_CLIENT_ID}}
3741
tenant-id: ${{secrets.ACR_TENANT_ID}}
3842
subscription-id: ${{secrets.ACR_SUBSCRIPTION_ID}}
39-
43+
4044
- name: Log into ACR
4145
run: |
4246
az acr login --name ${{secrets.ACR_REGISTRY_NAME}}

.github/workflows/push-manual-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
image:
77
description: 'Image ID'
88
required: true
9+
10+
permissions:
11+
id-token: write
912

1013
jobs:
1114
build-and-push:

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
id-token: write
10+
811
jobs:
912
build-and-push:
1013
name: Build and push images

.github/workflows/version-history.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
default: 'true'
2525
type: string
2626

27+
permissions:
28+
id-token: write
29+
2730
jobs:
2831
image_info:
2932
name: Update version history
@@ -54,7 +57,7 @@ jobs:
5457
client-id: ${{secrets.ACR_CLIENT_ID}}
5558
tenant-id: ${{secrets.ACR_TENANT_ID}}
5659
subscription-id: ${{secrets.ACR_SUBSCRIPTION_ID}}
57-
60+
5861
- name: Log into ACR
5962
run: |
6063
az acr login --name ${{secrets.ACR_REGISTRY_NAME}}

0 commit comments

Comments
 (0)