-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (36 loc) · 1.1 KB
/
.gitlab-ci.yml
File metadata and controls
40 lines (36 loc) · 1.1 KB
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
stages:
- test
- reports
include:
- template: Jobs/SAST.gitlab-ci.yml
- template: Jobs/Secret-Detection.gitlab-ci.yml
- template: Jobs/Dependency-Scanning.gitlab-ci.yml
- local: .gitlab/report.yaml
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
inputs:
stage: reports
image: ubuntu:22.04
ignore_vulnerabilities: "false"
sast_report_file: gl-sast-report.json
secret_detection_report_file: gl-secret-detection-report.json
dependency_scanning_report_file: gl-dependency-scanning-report.json
trivy scan:
stage: test
image: aquasec/trivy:0.69.3
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script:
- trivy fs --severity CRITICAL,HIGH,MEDIUM,LOW --ignore-unfixed --db-repository container-registry.regula.local:80/aquasecurity/trivy-db:2 --exit-code 1 .
semgrep-sast:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
artifacts:
paths:
- gl-sast-report.json
secret_detection:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
artifacts:
paths:
- gl-secret-detection-report.json