Skip to content

Commit 174d19f

Browse files
authored
Create gitlab-ci.yml:
1 parent 4e7be42 commit 174d19f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

PaS/gitlab-ci.yml:

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
stages:
2+
- test
3+
- security-sast # <- PaC checks run here
4+
- build
5+
- deploy
6+
7+
security_checks:
8+
stage: security-sast
9+
image: openpolicyagent/conftest:latest
10+
script:
11+
- conftest test Dockerfile --policy policy/dockerfile.rego
12+
- conftest test deployment.yaml --policy policy/k8s_security.rego
13+
- checkov -d terraform/
14+
allow_failure: false # If any check fails, the pipeline fails.

0 commit comments

Comments
 (0)