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