Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit eca31f7

Browse files
authored
Create checkmarx-analysis.yml
1 parent 61f3dc1 commit eca31f7

File tree

1 file changed

+38
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)