Skip to content

Commit 969c1f1

Browse files
Merge pull request #79 from NSAPH-Data-Processing/mahimakaur/issue78
add GH Actions (GHA) yaml file with small change on GHA secret name
2 parents e7a1dce + 13f9b9f commit 969c1f1

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 }}

0 commit comments

Comments
 (0)