Skip to content

Commit ef83856

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

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 (Push)
14+
on:
15+
push:
16+
branches:
17+
- main
18+
- master
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v2
26+
- name: Checkmarx CxFlow Action
27+
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.1 # GitHub Action version
28+
with:
29+
project: MFCx_CxFlow_JavaVulnLab-01 # <-- Insert Checkmarx CxSCA Project Name
30+
sca_api_url: https://api.scacheckmarx.com
31+
sca_app_url: https://sca.scacheckmarx.com
32+
sca_access_control_url: https://platform.checkmarx.net
33+
sca_tenant: SCA-Champions # <-- Insert Checkmarx CxSCA Tenant
34+
sca_username: ${{ secrets.CHECKMARX_SCA_USERNAME }} # To be stored in GitHub Secrets.
35+
sca_password: ${{ secrets.CHECKMARX_SCA_PASSWORD }} # To be stored in GitHub Secrets.
36+
break_build: false
37+
scanners: sca
38+
bug_tracker: GitHub
39+
params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }}

0 commit comments

Comments
 (0)