Skip to content

Commit a861e21

Browse files
committed
CI test
1 parent 0a1704e commit a861e21

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
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 }}
@@ -60,6 +60,8 @@ jobs:
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
@@ -85,7 +87,7 @@ jobs:
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/*

0 commit comments

Comments
 (0)