|
1 | 1 | on: |
2 | | - pull_request: {} |
| 2 | + pull_request: |
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - main |
6 | 6 | - master |
| 7 | + schedule: |
| 8 | + - cron: '0 15 * * 0' |
| 9 | + workflow_dispatch: |
7 | 10 | name: Checkmarx SAST Scan |
8 | 11 | 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 }} |
13 | 22 |
|
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