From 49034618ba087c505e3fc3d8192dd81fc3d757d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Haas?= <jurgen.haas@lakedrops.com>
Date: Sun, 27 Feb 2022 17:17:55 +0100
Subject: [PATCH] gitlab-ci-cd/drupal#14 Add Drupal Vendor Hardening Composer
 Plugin to production build task

---
 test-and-deploy.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index 2fd261a..e657375 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -200,6 +200,10 @@ Debug:
     # Run the following twice to ensure new patches get applied.
     - composer install --no-interaction --no-progress --no-dev
     - composer install --no-interaction --no-progress --no-dev
+    # Add the Drupal Vendor Hardening Composer Plugin.
+    # see https://github.com/drupal/core-vendor-hardening
+    - composer config --no-interaction allow-plugins.drupal/core-vendor-hardening true
+    - composer require --no-interaction --no-progress drupal/core-vendor-hardening
   artifacts:
     name: build-prod
     when: always
-- 
GitLab