[extensions-web] ci: re-add safety



commit f9b18e75982ff9a5783dff9b5d88a9d14defbef7
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Apr 24 15:53:17 2022 +0400

    ci: re-add safety

 .gitlab-ci.yml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 53d5e82..2c918e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,7 @@ test:
           - '3.9'
           - '3.10'
 
-security:
+security (trivy):
   stage: test
   image:
     name: aquasec/trivy
@@ -50,3 +50,16 @@ security:
     TRIVY_SECURITY_CHECKS: vuln,config
     # This is single-run job so we do not care of k8s recommendations
     TRIVY_SKIP_FILES: openshift/jobs/reindex-extensions.yml
+
+security (safety):
+  extends:
+    - .pip cache
+  stage: test
+  image:
+    name: python:$PYTHON_VERSION
+  before_script:
+    - pip install safety
+  script:
+    - safety check -r requirements.txt
+    - safety check -r requirements.ego.txt
+  allow_failure: true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]