File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Checkmarx One Scan and sync up to codecommit
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - master
7+ - dev
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+ - name : Checkmarx One CLI Action
15+ uses : checkmarx/ast-github-action@main # Github Action version
16+ with :
17+ project_name : ${{ secrets.PROJECT_NAME }}
18+ cx_tenant : ${{ secrets.CX_TENANT }}
19+ base_uri : ${{ secrets.BASE_URI }}
20+ cx_client_id : ${{ secrets.CX_CLIENT_ID }}
21+ cx_client_secret : ${{ secrets.CX_CLIENT_SECRET }}
22+ additional_params : --threshold "sast-high=1; sast-medium=1; sca-high=1; sca-medium=1; sast-low=1; sca-low=1"
23+ sync :
24+ needs : build
25+ runs-on : ubuntu-latest
26+ permissions :
27+ id-token : write
28+ contents : write
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v3
32+ with :
33+ fetch-depth : 0
34+
35+ - name : Configure AWS Credentials
36+ uses : aws-actions/configure-aws-credentials@v5.1.0
37+ with :
38+ role-to-assume : ${{ secrets.ROLE_ARN }}
39+ role-session-name : GH2CodeCommit_viaOIDC_${{ github.run_id }}
40+ aws-region : ${{ secrets.REGION }}
41+
42+ - name : Sync up to CodeCommit
43+ uses : tsgit18/sync-up-to-codecommit-action@v1.0.6
44+ with :
45+ repository_name : ${{ secrets.REPO }}
46+ aws_region : ${{ secrets.REGION }}
You can’t perform that action at this time.
0 commit comments