forked from checkmarx-ts/checkmarx-cxflow-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkmarx-ast-scan-push.yml
41 lines (38 loc) · 1.41 KB
/
checkmarx-ast-scan-push.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
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow is to automate Checkmarx AST scans. It runs on a push to the main branch.
#
# The following GitHub Secrets must be first defined:
# - AST_CLIENT_SECRET
#
# The following variables must be inserted below:
# - <ProjectName>
# - <url-for-ast>
#
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action
name: Checkmarx AST Scan
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkmarx CxFlow Action
uses: checkmarx-ts/[email protected] # GitHub Action version
with:
project: <ProjectName> # <-- Insert Checkmarx AST Project Name
ast_api_url: <url-for-ast> # <-- Insert Checkmarx AST API URL
ast_webapp_url: <url-for-ast> # <-- Insert Checkmarx WebApp URL
ast_client_id: CxFlow # client-id confgiured within AST portal.
ast_client_secret: ${{ secrets.AST_CLIENT_SECRET }} # To be stored in GitHub Secrets.
break_build: false
scanners: ast
bug_tracker: Sarif
params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: cx.sarif