From 2c1dd07c85135cbc3280fc9cbbe736743363a374 Mon Sep 17 00:00:00 2001 From: Vamshi-Microsoft Date: Fri, 9 Jan 2026 14:29:36 +0530 Subject: [PATCH] Added permissions section and removed Curl Azure CLI setup steps and replace with Azure setup actions --- .github/workflows/CI.yml | 22 +++++----------------- .github/workflows/test-automation.yml | 4 +++- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f9114cff..0161b923 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,7 +15,9 @@ on: - 'tests/**' schedule: - cron: "0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT - +permissions: + contents: read + actions: read env: GPT_CAPACITY: 150 TEXT_EMBEDDING_CAPACITY: 200 @@ -35,12 +37,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v5 # Checks out your repository - - name: Install Azure CLI - shell: bash - run: | - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - az --version # Verify installation - - name: Install Kubernetes CLI (kubectl) shell: bash run: | @@ -144,10 +140,8 @@ jobs: - name: Install Bicep CLI run: az bicep install - - name: Install Azure Developer CLI - run: | - curl -fsSL https://aka.ms/install-azd.sh | bash - shell: bash + - name: Install azd + uses: Azure/setup-azd@v2 - name: Set Deployment Region run: | @@ -406,12 +400,6 @@ jobs: VALID_REGION: ${{ needs.deploy.outputs.VALID_REGION }} steps: - - name: Install Azure CLI - shell: bash - run: | - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - az --version # Verify installation - - name: Login to Azure shell: bash run: | diff --git a/.github/workflows/test-automation.yml b/.github/workflows/test-automation.yml index 6bf45965..dd6e5a57 100644 --- a/.github/workflows/test-automation.yml +++ b/.github/workflows/test-automation.yml @@ -15,7 +15,9 @@ on: env: url: ${{ inputs.DKM_URL }} accelerator_name: "DKM" - +permissions: + contents: read + actions: read jobs: test: runs-on: ubuntu-latest