forked from OWASP/NodeGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 980 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Checkmarx One Scan
on:
push:
branches:
- main
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkmarx One CLI Action
uses: checkmarx/ast-github-action@main #Github Action version
with:
project_name: ${{ github.repository }}
cx_tenant: ${{ secrets.CX_TENANT }}
base_uri: ${{ secrets.CX_BASE_URI }}
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CX_SECRET }}
#additional_params: --threshold "sast-medium=20; sast-high=10; sca-high=10" #set thresholds
additional_params: --scan-types iac-security,sast,sca --report-format sarif --output-path .
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cx_result.sarif