File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 run : |
4343 aws sts get-caller-identity
4444
45- - name : Authenticate to Azure
45+ - name : Login to Azure with Federated Credentials
4646 uses : azure/login@v1
4747 with :
4848 client-id : ${{ secrets.AZURE_APP_CLIENT_ID }}
6060 run : |
6161 echo "" >> build/terraform.tfvars.aws
6262 echo "jfrog_credential_provider_binary_url=\"$JFROG_CREDENTIAL_PLUGIN_BINARY_URL\"" >> build/terraform.tfvars.aws
63+ # for azure, it is not possible to avoid azure authentication check, even when azure is disabled
64+ echo "azure_subscription_id=\"$AZURE_APP_SUBSCRIPTION_ID\"" >> build/terraform.tfvars.azure
6365 cp build/terraform.tfvars.aws terraform-ci/terraform.tfvars
6466 cd terraform-ci
6567 terraform init
8587 if : always()
8688 uses : actions/upload-artifact@v4
8789 with :
88- name : terraform-context-for-manual-cleanup
90+ name : terraform-context-for-manual-cleanup-aws
8991 path : |
9092 terraform-ci/**/*.tf
9193 terraform-ci/jfrog/*
@@ -108,7 +110,7 @@ jobs:
108110 - name : Install Azure CLI
109111 uses : pietrobolcato/install-azure-cli-action@main
110112
111- - name : ' Login to Azure with Federated Credentials'
113+ - name : Login to Azure with Federated Credentials
112114 uses : azure/login@v1
113115 with :
114116 client-id : ${{ secrets.AZURE_APP_CLIENT_ID }}
@@ -156,7 +158,7 @@ jobs:
156158 if : always()
157159 uses : actions/upload-artifact@v4
158160 with :
159- name : terraform-context-for-manual-cleanup
161+ name : terraform-context-for-manual-cleanup-azure
160162 path : |
161163 terraform-ci/**/*.tf
162164 terraform-ci/jfrog/*
You can’t perform that action at this time.
0 commit comments