Skip to content

Commit 1430be9

Browse files
authored
Create checkmarx-sca-scan-on-pr.yml
1 parent f2cbf2b commit 1430be9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow is to automate Checkmarx SCA scans. It runs on a push to the main branch.
2+
#
3+
# The following GitHub Secrets must be first defined:
4+
# - CHECKMARX_SCA_USERNAME
5+
# - CHECKMARX_SCA_PASSWORD
6+
##
7+
# The following variables must be inserted below:
8+
# - <ProjectName>
9+
# - <SCATenant>
10+
#
11+
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action
12+
13+
name: Checkmarx SCA Scan (Pull Request)
14+
on:
15+
pull_request:
16+
types: [opened, reopened, synchronize] # Types specify which pull request events will trigger the workflow. For more events refer Github Actions documentation.
17+
branches:
18+
- master
19+
- main
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
- name: Checkmarx CxFlow Action
28+
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.1 # GitHub Action version
29+
with:
30+
project: MFCx_CxFlow_JavaVulnLab-01 # <-- Insert Checkmarx CxSCA Project Name
31+
sca_api_url: https://api.scacheckmarx.com
32+
sca_app_url: https://sca.scacheckmarx.com
33+
sca_access_control_url: https://platform.checkmarx.net
34+
sca_tenant: SCA-Champions # <-- Insert Checkmarx CxSCA Tenant
35+
sca_username: ${{ secrets.CHECKMARX_SCA_USERNAME }} # To be stored in GitHub Secrets.
36+
sca_password: ${{ secrets.CHECKMARX_SCA_PASSWORD }} # To be stored in GitHub Secrets.
37+
break_build: false
38+
scanners: sca
39+
bug_tracker: GITHUBPULL
40+
params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.head_ref }} --merge-id=${{ github.event.number }}

0 commit comments

Comments
 (0)