From d5b45fc86b34b4b56ea1f0fe4e48ae7d2a1ed3bc Mon Sep 17 00:00:00 2001 From: Anna Shcherbak Date: Fri, 10 May 2024 19:55:12 +0300 Subject: [PATCH] skip: test account --- .github/workflows/tf_testing.yml | 76 ++++++++++++++++---------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/tf_testing.yml b/.github/workflows/tf_testing.yml index 137c6ab5..c8a0513f 100644 --- a/.github/workflows/tf_testing.yml +++ b/.github/workflows/tf_testing.yml @@ -22,7 +22,7 @@ env: CORE_TESTING_FOLDER: ${{ github.workspace }} OUTPUT_DIR: ${{ github.workspace }}/auto_policy_testing/output AWS_DEFAULT_REGION: ${{ vars.AWS_REGION }} - resource_priority_list: 'internet,kms,key,lambda' + resource_priority_list: 'account' RED: '\033[0;31m' jobs: @@ -64,40 +64,40 @@ jobs: test -s $OUTPUT_DIR/.tf_failed && exit 1 exit 0 - terraform_test_policy_red_flights: - permissions: - contents: 'read' - id-token: 'write' - runs-on: ubuntu-22.04 - steps: - - name: Git clone the repository - uses: actions/checkout@v4 - - name: configure aws credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CI_ASSUME_ROLE }} - role-session-name: ECC-AWS-RULEPACK_CI-RED - aws-region: ${{ vars.AWS_REGION }} - - name: Install dependencies - shell: bash - working-directory: auto_policy_testing/scripts - run: | - pip install -r requirements.txt - - name: terraform_test_policy_red_flights - shell: bash - working-directory: auto_policy_testing/scripts - run: | - python main.py \ - --cloud AWS \ - --infra_color red \ - -l $resource_priority_list \ - --base_dir $GITHUB_WORKSPACE \ - --output_dir $OUTPUT_DIR \ - --sa "github_ci_readonly_ecc-aws-rulepack" - echo -e "${RED}Failed policies:" - cat $OUTPUT_DIR/.failed - echo -e "${RED}Failed terraforms:" - cat $OUTPUT_DIR/.tf_failed - test -s $OUTPUT_DIR/.failed && exit 1 - test -s $OUTPUT_DIR/.tf_failed && exit 1 - exit 0 \ No newline at end of file + # terraform_test_policy_red_flights: + # permissions: + # contents: 'read' + # id-token: 'write' + # runs-on: ubuntu-22.04 + # steps: + # - name: Git clone the repository + # uses: actions/checkout@v4 + # - name: configure aws credentials + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # role-to-assume: ${{ secrets.CI_ASSUME_ROLE }} + # role-session-name: ECC-AWS-RULEPACK_CI-RED + # aws-region: ${{ vars.AWS_REGION }} + # - name: Install dependencies + # shell: bash + # working-directory: auto_policy_testing/scripts + # run: | + # pip install -r requirements.txt + # - name: terraform_test_policy_red_flights + # shell: bash + # working-directory: auto_policy_testing/scripts + # run: | + # python main.py \ + # --cloud AWS \ + # --infra_color red \ + # -l $resource_priority_list \ + # --base_dir $GITHUB_WORKSPACE \ + # --output_dir $OUTPUT_DIR \ + # --sa "github_ci_readonly_ecc-aws-rulepack" + # echo -e "${RED}Failed policies:" + # cat $OUTPUT_DIR/.failed + # echo -e "${RED}Failed terraforms:" + # cat $OUTPUT_DIR/.tf_failed + # test -s $OUTPUT_DIR/.failed && exit 1 + # test -s $OUTPUT_DIR/.tf_failed && exit 1 + # exit 0 \ No newline at end of file