From fae408f54f8632fe01c746c27342da85e06b3bd4 Mon Sep 17 00:00:00 2001 From: Andrei Titerlea Date: Thu, 17 Aug 2023 11:26:58 -0700 Subject: [PATCH] Adding permissions --- .github/workflows/azure-terraform.yml | 5 +++++ .github/workflows/create-cluster.yml | 5 ----- .github/workflows/destroy-cluster.yml | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/azure-terraform.yml b/.github/workflows/azure-terraform.yml index 859bf2a..5d64964 100644 --- a/.github/workflows/azure-terraform.yml +++ b/.github/workflows/azure-terraform.yml @@ -12,6 +12,11 @@ on: - "**/azure/**" - ".github/workflows/azure-terraform.yml" +permissions: + contents: read + id-token: write + pull-requests: write + jobs: create: name: Create AKS Cluster diff --git a/.github/workflows/create-cluster.yml b/.github/workflows/create-cluster.yml index 00350f8..b6e47bc 100644 --- a/.github/workflows/create-cluster.yml +++ b/.github/workflows/create-cluster.yml @@ -58,11 +58,6 @@ on: description: '' required: false -permissions: - contents: read - id-token: write - pull-requests: write - env: ARM_CLIENT_ID: ${{ secrets.CLIENT_ID || '' }} ARM_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET || '' }} diff --git a/.github/workflows/destroy-cluster.yml b/.github/workflows/destroy-cluster.yml index 9f8f45b..46e06f9 100644 --- a/.github/workflows/destroy-cluster.yml +++ b/.github/workflows/destroy-cluster.yml @@ -58,11 +58,6 @@ on: description: '' required: false -permissions: - contents: read - id-token: write - pull-requests: write - env: ARM_CLIENT_ID: ${{ secrets.CLIENT_ID || '' }} ARM_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET || '' }}