From 8d2d986d2e2cb674a48a3c280f787801ac913787 Mon Sep 17 00:00:00 2001
From: Dorian Koch <doriank@fsmpi.rwth-aachen.de>
Date: Tue, 2 Jul 2024 18:06:37 +0200
Subject: [PATCH] Fix trigger-production rule, Run audit in pipeline

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1099e28..84e762a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,7 @@
 trigger-production:
     stage: deploy
     rules:
-        - if: $CI_COMMIT_BRANCH == "live_production" && $CI_COMMIT_TAG != null
+        - if: $CI_COMMIT_TAG != null
     variables:
         BUILD_TYPE: frontend
         UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
@@ -18,6 +18,7 @@ test-lint:
         - npm install
     script:
         - npm run lint
+        - npm audit --audit-level high
     cache:
         - key:
             files:
-- 
GitLab