-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip: add sequential parallel resources
- Loading branch information
Mykhailo
committed
Oct 4, 2024
1 parent
4befa6d
commit dd920a1
Showing
2 changed files
with
175 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy and scan sequential parallel resources | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
RESOURCE: | ||
type: string | ||
ACTIONS_REPO_BRANCH: | ||
type: string | ||
READONLY_ROLE_NAME: | ||
type: string | ||
|
||
jobs: | ||
deploy_and_scan_sequential_parallel_resources: | ||
name: Scan S/P | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
max-parallel: 2 | ||
fail-fast: false | ||
matrix: | ||
compliance: ['green', 'red'] | ||
env: | ||
COMPLINCE: ${{ matrix.compliance }} | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout ecc-actions | ||
run: git clone -b $ACTIONS_REPO_BRANCH "https://git:$PROJECT_TOKEN@git.epam.com/epmc-sec/cloudlab/cloud_custodian/ecc-actions.git" ecc-actions | ||
env: | ||
PROJECT_TOKEN: ${{ secrets.ECC_CHANGELOG_ACTION }} | ||
ACTIONS_REPO_BRANCH: ${{ inputs.ACTIONS_REPO_BRANCH }} | ||
|
||
- name: Deploy and scan sequential parallel resources | ||
uses: ./ecc-actions/auto-test-actions/deploy-and-scan-resources | ||
with: | ||
CI_ASSUME_ROLE: ${{ secrets.CI_ASSUME_ROLE }} | ||
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} | ||
WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | ||
COMPLIANCE: ${{ matrix.compliance }} | ||
PROJECT_TOKEN: ${{ secrets.CLOUDCUSTODIAN_CORE }} | ||
READONLY_ROLE_NAME: ${{ inputs.READONLY_ROLE_NAME }} | ||
GOOGLE_IMPERSONATE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_IMPERSONATE_SERVICE_ACCOUNT }} | ||
|
||
|