Skip to content

Commit 9f1296e

Browse files
template fix
1 parent d6ea884 commit 9f1296e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/azure-dev-validation.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ jobs:
2727
if [ -z "${{ secrets.AZURE_CLIENT_ID }}" ]; then echo "::error::Required secret AZURE_CLIENT_ID is missing." >&2; missing=1; fi
2828
if [ -z "${{ secrets.AZURE_TENANT_ID }}" ]; then echo "::error::Required secret AZURE_TENANT_ID is missing." >&2; missing=1; fi
2929
if [ -z "${{ secrets.AZURE_SUBSCRIPTION_ID }}" ]; then echo "::error::Required secret AZURE_SUBSCRIPTION_ID is missing." >&2; missing=1; fi
30+
if [ -z "${{ secrets.AZURE_LOCATION }}" ]; then echo "::warning::AZURE_LOCATION not set; defaulting to eastus for validation context."; echo "AZURE_LOCATION=eastus" >> $GITHUB_ENV; else echo "AZURE_LOCATION=${{ secrets.AZURE_LOCATION }}" >> $GITHUB_ENV; fi
3031
if [ "$missing" -eq 1 ]; then
3132
echo "Missing required secrets. Failing early." >&2
3233
exit 1
3334
fi
3435
echo "All required auth secrets present (client secret not required for OIDC)."
3536
37+
- name: Ensure Bicep CLI installed
38+
run: |
39+
az bicep install || true
40+
echo "Bicep version:"; az bicep version || echo "Bicep not available" >&2
41+
3642
- name: Azure Login (OIDC)
3743
uses: azure/login@v1
3844
with:
@@ -43,9 +49,10 @@ jobs:
4349
- name: Debug Azure context
4450
run: |
4551
az account show || echo "Could not show account (ensure privileges)" >&2
46-
echo "Listing bicep version (if installed):"; az bicep version || true
52+
echo "Listing bicep version:"; az bicep version || true
4753
echo "Listing repo root:"; ls -1 . || true
4854
echo "Infra directory content:"; ls -1 infra || true
55+
echo "Resolved AZURE_LOCATION: ${AZURE_LOCATION:-unset}"
4956
5057
- name: Validate Azure Template
5158
id: validation

0 commit comments

Comments
 (0)