Skip to content

Commit bb07eee

Browse files
committed
security: Fix the Azure CLI version in CI
1 parent 3f72173 commit bb07eee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pipeline.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ on:
1515
- main
1616

1717
env:
18+
# CI/CD variables
1819
CONTAINER_NAME: ${{ github.repository }}
1920
CONTAINER_REGISTRY_GHCR: ghcr.io
2021
CONTAINER_PLATFORMS: linux/amd64,linux/arm64/v8
22+
# Tool versions
23+
# See: https://github.com/azure/azure-cli/releases
24+
AZURE_CLI_VERSION: 2.68.0
2125
# https://github.com/docker/buildx/releases
2226
BUILDX_VERSION: 0.17.1
2327

@@ -113,7 +117,9 @@ jobs:
113117
version: "0.5.x"
114118

115119
- name: Set up Azure CLI
116-
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
120+
run: |
121+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
122+
sudo apt-get install azure-cli=${{ env.AZURE_CLI_VERSION }}-1~$(lsb_release -cs)
117123
118124
# - name: Login to Azure
119125
# uses: Azure/[email protected]

0 commit comments

Comments
 (0)