From 7668188f82cc7266e9a39d251db90c70ff345044 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Fri, 27 Dec 2024 15:19:25 +0100
Subject: [PATCH] docker/gitlab-drupal-ci#54 Remove composer downgrade and
 other composer plugin preparations

---
 mixins.yml | 46 +---------------------------------------------
 1 file changed, 1 insertion(+), 45 deletions(-)

diff --git a/mixins.yml b/mixins.yml
index a200aae..a1cb54e 100644
--- a/mixins.yml
+++ b/mixins.yml
@@ -30,51 +30,7 @@ include:
 
 .preparecomposerplugins:
   before_script:
-    # Downgrade composer if required
-    - if [[ -n $DOWNGRADE_COMPOSER ]]; then composer self-update --$DOWNGRADE_COMPOSER; fi
-    # Add the Drupal Vendor Hardening Composer Plugin.
-    # see https://github.com/drupal/core-vendor-hardening
-    - composer config --no-plugins --no-interaction allow-plugins.drupal/core-vendor-hardening true
-    # Disallowing plugin script.
-    - composer config --no-plugins --no-interaction allow-plugins.php-http/discovery true
-    # Allow PHPStan Extension Installer
-    - composer config --no-plugins --no-interaction allow-plugins.phpstan/extension-installer true
-    # Allow Composer Installer Extender
-    - composer config --no-plugins --no-interaction allow-plugins.oomphinc/composer-installers-extender true
-    # Allow Drupal Libraries Installer
-    - composer config --no-plugins --no-interaction allow-plugins.zodiacmedia/drupal-libraries-installer true
-    # Allow Drupal Dependency Quality Gate Composer Audit plugin
-    - if [[ "$IGNORE_COMPOSER_EXTENDED_AUDIT" == "0" ]]; then composer config --no-plugins --no-interaction allow-plugins.mxr576/ddqg-composer-audit true; fi
-    # Disallow Drupal Dependency Quality Gate Composer Audit plugin
-    - if [[ "$IGNORE_COMPOSER_EXTENDED_AUDIT" == "1" ]]; then composer config --no-plugins --no-interaction allow-plugins.mxr576/ddqg-composer-audit false; fi
-    # Composer audit should fail on abandonded packages found
-    - if [[ "$IGNORE_COMPOSER_ABANDONED_AUDIT" == "0" ]]; then composer config --no-plugins --no-interaction audit.abandoned fail; fi
-    # Composer audit should only report found abandonded packages
-    - if [[ "$IGNORE_COMPOSER_ABANDONED_AUDIT" == "1" ]]; then composer config --no-plugins --no-interaction audit.abandoned report; fi
-    # Check if lenient project is required
-    - LENIENT=$(jq '.config."allow-plugins"."mglaman/composer-drupal-lenient"' composer.json)
-    - if [[ "$LENIENT" == "true" ]]; then composer global config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true; composer global require mglaman/composer-drupal-lenient; fi
-    # Update composer audit CVEs
-    - sed -i "s/DDQG-unsupported-drupal-activitypub-1.0.0.0-alpha18/DDQG-unsupported-drupal-activitypub-1.0.0.0-alpha19/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-gin-3.0.0.0-RC12/DDQG-unsupported-drupal-gin-3.0.0.0-RC13/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-gin_toolbar-1.0.0.0-RC5/DDQG-unsupported-drupal-gin_toolbar-1.0.0.0-RC6/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC7/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC8/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC8/DDQG-unsupported-drupal-smart_date-4.1.0.0-RC9/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-analog_digital_clock-10.1.1.0/DDQG-unsupported-drupal-analog_digital_clock-10.1.2.0/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-beta1/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca-2.0.0.0-beta3/DDQG-unsupported-drupal-eca-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-beta1/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-beta1/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-rc1/DDQG-unsupported-drupal-bpmn_io-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca-2.0.0.0-rc1/DDQG-unsupported-drupal-eca-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-rc1/DDQG-unsupported-drupal-eca_metatag-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-rc1/DDQG-unsupported-drupal-eca_tamper-2.0.0.0-RC1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-matomo-0.0.0.0-dev/DDQG-unsupported-drupal-matomo-2.0.0.0-alpha1/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-views_menu_children_filter-3.0.0.0-RC2/DDQG-unsupported-drupal-views_menu_children_filter-3.0.0.0-RC4/g" composer.json
-    - sed -i "s/DDQG-unsupported-drupal-login_destination-2.0.0.0-beta6/DDQG-unsupported-drupal-login_destination-2.0.0.0-beta7/g" composer.json
-    #- sed -i "s/###/###/g" composer.json
-    # Finally!!! Normalize composer.json by pretty printing it to ensure consistent structure.
-    # Disabled for now, since this sometimes creates an empty file: cat composer.json | jq -M . | tee composer.json >/dev/null
+    - echo "This got removed as it's now part of the default config."
 
 .customreferences:
   LanguageFiles: []
-- 
GitLab