diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..70da1ae4cb14af91e68de1a2e1a3e44d7d58bede --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: docker:latest + +services: + - docker:dind + +stages: + - build + - test + +build: + stage: build + script: + - docker-compose build + +sast: + stage: test + image: registry.gitlab.com/gitlab-org/security-products/sast:latest + dependencies: + - build + script: + - docker-compose up -d + - /app/bin/run -o /code/output gl-sast --format=gl-container --debug --fail-on=high,unknown + + after_script: + - docker-compose down