Skip to content

Commit 56a3697

Browse files
authored
Create checkmarx-analysis.yml
1 parent 74460c2 commit 56a3697

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is a basic workflow to help you get started with Using Checkmarx CxFlow Action
2+
3+
name: CxFlow
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
# The branches below must be a subset of the branches above
10+
branches: [ master ]
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
13+
jobs:
14+
# This workflow contains a single job called "build"
15+
build:
16+
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
17+
runs-on: ubuntu-latest
18+
19+
# Steps require - checkout code, run CxFlow Action, Upload SARIF report (optional)
20+
steps:
21+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- uses: actions/checkout@v2
23+
# Runs the Checkmarx Scan leveraging the latest version of CxFlow - REFER to Action README for list of inputs
24+
- name: Checkmarx CxFlow Action
25+
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.0
26+
with:
27+
project: GithubActionTest
28+
team: '\CxServer\SP\Checkmarx'
29+
checkmarx_url: ${{ secrets.CHECKMARX_URL }}
30+
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
31+
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
32+
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
33+
# Upload the Report for CodeQL/Security Alerts
34+
- name: Upload SARIF file
35+
uses: github/codeql-action/upload-sarif@v1
36+
with:
37+
sarif_file: cx.sarif

0 commit comments

Comments
 (0)