Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo committed Sep 18, 2024
1 parent 721d207 commit aa176ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
default_resource_priority_list: '[ "sqs", "sns", "defender", "role"]'
RED: '\033[0;31m'
ACTIONS_REPO_BRANCH: "feature/deploy_scan_sequential_resources"
ACTIONS_REPO_BRANCH: "feature/deploy_scan_sequential_resources"

permissions:
contents: "read"
Expand Down Expand Up @@ -204,8 +204,14 @@ jobs:
runs-on: ubuntu-22.04
needs: [deploy_common_resources, create_readonly_role_for_scans, prepare_resource_matrix]
if: ${{ needs.prepare_resource_matrix.outputs.sequential_resources_list != '[]' }}
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
strategy:
max-parallel: ${{ needs.prepare_resource_matrix.outputs.sequential_resources_length }}
max-parallel: ${{ env.MAX_PARALLEL }}
fail-fast: false
matrix:
compliance: ['green', 'red']
Expand Down

0 comments on commit aa176ab

Please sign in to comment.