-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (40 loc) · 1.57 KB
/
AST_GitHubAction.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
name: Checkmarx AST scan
on:
[push, pull_request]
jobs:
pull_request_with_block:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Type scan
id: pull_request_scan
run : echo "Run on" ${{ github.event_name }}
- name: Checkmarx One - Check vulnerabilities with block
uses: checkmarx/ast-github-action@main #Github Action version
with:
project_name: ${{ github.repository }}
cx_tenant: ${{ secrets.CHECKMARX_TENANT_NAME }}
base_uri: ${{ secrets.CHECKMARX_BASE_URI }}
cx_client_id: ${{ secrets.CHECKMARX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
additional_params: ${{ secrets.CHECKMARX_SCAN_PARAMETER_ON_PR }}
push_scan:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Type scan
id: pull_scan
run : echo "Run on" ${{ github.event_name }}
- name: Checkmarx One - Check vulnerabilities without block
uses: checkmarx/ast-github-action@main #Github Action version
with:
project_name: ${{ github.repository }}
cx_tenant: ${{ secrets.CHECKMARX_TENANT_NAME }}
base_uri: ${{ secrets.CHECKMARX_BASE_URI }}
cx_client_id: ${{ secrets.CHECKMARX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
additional_params: ${{ secrets.CHECKMARX_SCAN_PARAMETER_ON_PUSH }}