Skip to content

Commit a4a8f67

Browse files
authored
Merge branch 'main' into feature/AST-8454-add-scan-cancel
2 parents dcd2cb8 + 7f20a66 commit a4a8f67

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

.github/workflows/ast-scan.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Checkmarx AST Scan
2+
3+
on: [ pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
cx-scan:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Checkmarx AST CLI Action
12+
uses: checkmarx/ast-github-action@main
13+
with:
14+
base_uri: ${{ secrets.BASE_URI }}
15+
cx_tenant: ${{ secrets.TENANT }}
16+
cx_client_id: ${{ secrets.CLIENT_ID }}
17+
cx_client_secret: ${{ secrets.CLIENT_SECRET }}
18+
additional_params: --tags galactica-team --threshold "sast-high=1"

.github/workflows/ci.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,10 @@ jobs:
1515
- run: npm run build --if-present
1616
- name: Run tests
1717
env:
18-
CX_CLIENT_ID: ${{ secrets.CLIENT_ID}}
19-
CX_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
20-
CX_BASE_URI: ${{ secrets.BASE_URI }}
21-
CX_TENANT: ${{ secrets.TENANT }}
18+
CX_CLIENT_ID: ${{ secrets.CX_CLIENT_ID}}
19+
CX_CLIENT_SECRET: ${{ secrets.CX_CLIENT_SECRET}}
20+
CX_BASE_URI: ${{ secrets.CX_BASE_URI }}
21+
CX_TENANT: ${{ secrets.CX_TENANT }}
2222
CX_SCANID: ${{ secrets.SCANID }}
2323
CX_APIKEY: ${{ secrets.CX_APIKEY }}
24-
run: npm test
25-
cx-scan:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v3
30-
- name: Checkmarx AST CLI Action
31-
uses: checkmarxDev/ast-github-action@main
32-
with:
33-
project_name: ${{ github.repository }}
34-
base_uri: ${{ secrets.BASE_URI }}
35-
cx_tenant: ${{ secrets.TENANT }}
36-
cx_client_id: ${{ secrets.CLIENT_ID }}
37-
cx_client_secret: ${{ secrets.CLIENT_SECRET }}
38-
additional_params: --tags "Galactica"
24+
run: npm test

0 commit comments

Comments
 (0)