Skip to content

Commit 1e18ad7

Browse files
committed
fix(tf-checks): guard azure login when AZURE_CREDENTIALS is absent
1 parent e075b2c commit 1e18ad7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tf-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
role-skip-session-tagging: true
154154

155155
- name: ☁️ Install Azure CLI
156-
if: ${{ inputs.provider == 'azurerm' }}
156+
if: ${{ inputs.provider == 'azurerm' && secrets.AZURE_CREDENTIALS != '' }}
157157
uses: azure/login@v2
158158
with:
159159
creds: ${{ secrets.AZURE_CREDENTIALS }}
@@ -225,7 +225,7 @@ jobs:
225225
aws-region: ${{ inputs.aws_region }}
226226

227227
- name: ☁️ Install Azure CLI
228-
if: ${{ inputs.provider == 'azurerm' }}
228+
if: ${{ inputs.provider == 'azurerm' && secrets.AZURE_CREDENTIALS != '' }}
229229
uses: azure/login@v2
230230
with:
231231
creds: ${{ secrets.AZURE_CREDENTIALS }}

0 commit comments

Comments
 (0)