Skip to content

Commit 95ef928

Browse files
Merge pull request #2 from replicon/RTI-18
RTI-18: Add Script for Checkmarx scanning
2 parents c27dc75 + 6356ce3 commit 95ef928

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/checkmarx.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on:
2+
pull_request: {}
3+
push:
4+
branches:
5+
- main
6+
- master
7+
name: Checkmarx SAST Scan
8+
jobs:
9+
checkmarx-scan:
10+
name: Checkmarx SAST Scan
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 300
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
18+
- name: Run Checkmarx SAST Scan
19+
uses: checkmarx-ts/checkmarx-cxflow-github-action@v2.3
20+
with:
21+
# Connection parameters
22+
checkmarx_url: https://cmxext.deltek.com
23+
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
24+
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
25+
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
26+
team: "/CxServer/Security/Deltek/Replicon"
27+
28+
# Project configuration
29+
project: Replicon-${{ github.event.repository.name }}
30+
scanners: sast
31+
# bug_tracker: GitHub
32+
incremental: false
33+
break_build: false
34+
35+
# Scan parameters and thresholds
36+
params: >-
37+
--logging.level.com.checkmarx=DEBUG
38+
--namespace=${{ github.repository_owner}}
39+
--checkmarx.settings-override=true
40+
--repo-name=${{ github.event.repository.name}}
41+
--branch=${{ github.ref_name || github.head_ref}}
42+
--checkmarx.scan-timeout=1440
43+
--cx-flow.filterSeverity
44+
--cx-flow.thresholds.high=1
45+
--cx-flow.thresholds.medium=1
46+
--cx-flow.scan-resubmit=true
47+
${{ github.event.number && format('--merge-id={0}', github.event.number)}}
48+

0 commit comments

Comments
 (0)