From 5135c945d93028f3176208de967798fcb44b1f5a Mon Sep 17 00:00:00 2001 From: miampf Date: Thu, 31 Oct 2024 13:10:47 +0100 Subject: [PATCH] use action secret for app/client id --- .github/workflows/peerpods_cluster_recreate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/peerpods_cluster_recreate.yml b/.github/workflows/peerpods_cluster_recreate.yml index e08af018e..d364e3882 100644 --- a/.github/workflows/peerpods_cluster_recreate.yml +++ b/.github/workflows/peerpods_cluster_recreate.yml @@ -30,7 +30,7 @@ jobs: echo "TF_VAR_subscription_id=$subid" >> "$GITHUB_ENV" echo "ARM_SUBSCRIPTION_ID=$subid" >> "$GITHUB_ENV" echo "ARM_TENANT_ID=$(az account show | jq -r '.tenantId')" >> "$GITHUB_ENV" - echo "ARM_CLIENT_ID=$(az ad app list --all | jq -r '.[] | select(.displayName == "contrast-ci") | .appId')" >> "$GITHUB_ENV" + echo "ARM_CLIENT_ID=${{ secrets.CONTRAST_CI_APP_ID }}" >> "$GITHUB_ENV" echo "ARM_CLIENT_SECRET=${{ secrets.CONTRAST_CI_CLIENT_SECRET_AZURE }}" >> "$GITHUB_ENV" - name: Upload the image run: |