From 634341356d83bedba2dd25898bbee5b8542556e9 Mon Sep 17 00:00:00 2001 From: Mykhailo Date: Wed, 18 Sep 2024 23:32:03 +0300 Subject: [PATCH] Approach 2: Use new composite action --- .github/workflows/auto-test.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/auto-test.yml b/.github/workflows/auto-test.yml index 5e47552..76bc860 100644 --- a/.github/workflows/auto-test.yml +++ b/.github/workflows/auto-test.yml @@ -197,18 +197,12 @@ jobs: needs: [deploy_common_resources, prepare_resource_matrix] if: ${{ needs.prepare_resource_matrix.outputs.sequential_resources_list != '[]' }} strategy: - max-parallel: ${{ fromJson(needs.prepare_resource_matrix.outputs.sequential_resources_length) }} fail-fast: false matrix: - compliance: ['green', 'red'] resource: ${{fromJson(needs.prepare_resource_matrix.outputs.sequential_resources_list)}} env: - COMPLINCE: ${{ matrix.compliance }} RESOURCE: ${{ matrix.resource }} steps: - - name: Set max-parallel dynamically - run: echo "MAX_PARALLEL=${{ needs.prepare_resource_matrix.outputs.sequential_resources_length }}" >> $GITHUB_ENV - - name: Git clone the repository uses: actions/checkout@v4 @@ -218,11 +212,10 @@ jobs: PROJECT_TOKEN: ${{ secrets.ECC_CHANGELOG_ACTION }} ACTIONS_REPO_BRANCH: ${{ env.ACTIONS_REPO_BRANCH }} - name: Deploy and scan non-parallel resources - uses: ./ecc-actions/auto-test-actions/deploy-and-scan-resources + uses: ./ecc-actions/auto-test-actions/deploy-and-scan-sequential-resources with: CI_ASSUME_ROLE: ${{ secrets.CI_ASSUME_ROLE }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} - COMPLIANCE: ${{ matrix.compliance }} PROJECT_TOKEN: ${{ secrets.CLOUDCUSTODIAN_CORE }} # delete_readonly_role_for_scans: