Skip to content

Commit 165e199

Browse files
Create Security Scan Workflow.
1 parent d1196bf commit 165e199

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

.github/workflows/change-review.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ jobs:
1616
steps:
1717
- name: checkout code
1818
uses: actions/checkout@v2
19-
20-
21-
- name: Checkmarx One ClI Action
22-
uses: checkmarx/ast-github-action@main
23-
with:
24-
project_name: Python-v2
25-
cx_tenant: Flutterwave
26-
base_uri: https://eu.ast.checkmarx.net/
27-
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
28-
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
29-
additional_params: --scan-types sast,iac-security,api-security,sca,container-security
3019

3120
- name: setup python environment
3221
uses: actions/setup-python@v2

.github/workflows/security-scan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Security scan on all changes (Commits/PRs)
2+
3+
on:
4+
push:
5+
branches: ['main', 'master', 'pilots', 'dev']
6+
pull_request:
7+
types:
8+
- opened
9+
10+
jobs:
11+
code-check:
12+
runs-on: ubuntu-latest
13+
env:
14+
OS: ubuntu-latest
15+
PYTHON: '3.7'
16+
steps:
17+
- name: checkout code
18+
uses: actions/checkout@v2
19+
20+
21+
- name: Checkmarx One ClI Action
22+
uses: checkmarx/ast-github-action@main
23+
with:
24+
project_name: Python-v2
25+
cx_tenant: Flutterwave
26+
base_uri: https://eu.ast.checkmarx.net/
27+
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
28+
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
29+
additional_params: --scan-types sast,iac-security,api-security,sca,container-security

0 commit comments

Comments
 (0)