Skip to content

Commit

Permalink
Approach 2: Use new composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo committed Sep 18, 2024
1 parent 2eb94ab commit 6343413
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 6343413

Please sign in to comment.