diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 59511eef737429ab4e56a1db4dba6123018e0b5e..a8f80b21660c129874dad6527c2a9d166b1e3ecc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,8 +8,6 @@ default:
 stages:
   - prepare
   - lint
-  # check if this needs to be a separate step
-  # - build_extensions
   - test
   - package
   - images
@@ -19,6 +17,7 @@ stages:
 # Caching of dependencies to speed up builds
 variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+  SECURE_LOG_LEVEL: debug
 
 include:
   - template: Security/SAST.gitlab-ci.yml
@@ -50,17 +49,18 @@ run_pylint:
     - tox -e pylint
   allow_failure: true
 
-# build_extensions:
-#   stage: build_extensions
-#   script:
-#     - echo "build fortran/c/cpp extension source code"
-
 sast:
   variables:
     SAST_EXCLUDED_ANALYZERS: brakeman, flawfinder, kubesec, nodejs-scan, phpcs-security-audit,
       pmd-apex, security-code-scan, sobelow, spotbugs
   stage: test
 
+gemnasium-python-dependency_scanning:
+    variables:
+      PIP_EXTRA_INDEX_URL: https://git:astron:nl/api/v4/projects/744/packages/pypi/simple
+    before_script:
+      - apt-get -qqy update && apt-get install -qqy libpq-dev
+
 # Basic setup for all Python versions for which we don't have a base image
 .run_unit_test_version_base:
   services: