From 3e2019eb3287d0c273acd18a3d96beff77fe54b7 Mon Sep 17 00:00:00 2001
From: "Someshwar, Rudra (PG/T - Comp Sci & Elec Eng)" <rs01922@surrey.ac.uk>
Date: Wed, 3 May 2023 12:36:49 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..70da1ae4
--- /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
-- 
GitLab