Skip to content

Commit fdf985f

Browse files
committed
Fixed Error: Please make sure to give write permissions to id-token in the workflow.
1 parent 557fc55 commit fdf985f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/terraform-create.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [ "main" ]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
env:
812
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
913
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}

.github/workflows/terraform-destroy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Terraform Destroy Infra
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
id-token: write
7+
contents: read
8+
59
env:
610
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
711
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
50.3 KB
Loading

0 commit comments

Comments
 (0)