Skip to content

Commit 41f3768

Browse files
Merge pull request #6 from replicon/RTI-40
RTI-40: Update Checkmarx workflow with scheduled scan support
2 parents 9e83da6 + 308c7cd commit 41f3768

1 file changed

Lines changed: 14 additions & 40 deletions

File tree

.github/workflows/checkmarx.yml

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,22 @@
11
on:
2-
pull_request: {}
2+
pull_request:
33
push:
44
branches:
55
- main
66
- master
7+
schedule:
8+
- cron: '0 15 * * 0'
9+
workflow_dispatch:
710
name: Checkmarx SAST Scan
811
jobs:
9-
checkmarx-scan:
10-
name: Checkmarx SAST Scan
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 300
12+
call-reusable-checkmarx:
13+
name: Call Reusable Checkmarx Workflow
14+
uses: Replicon/time-intelligence-web/.github/workflows/reusable-checkmarx.yml@main
15+
with:
16+
timeout_minutes: 90
17+
scheduled_timeout_minutes: 360
18+
secrets:
19+
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
20+
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
21+
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
1322

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)