Fix composer advisory install-block breaking 7.3/7.4 mess-detector & phpstan builds#168
Open
kapilpandya22 wants to merge 1 commit into
Open
Fix composer advisory install-block breaking 7.3/7.4 mess-detector & phpstan builds#168kapilpandya22 wants to merge 1 commit into
kapilpandya22 wants to merge 1 commit into
Conversation
… & phpstan images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Build and deployfails for the PHP 7.3 (and 7.4)magento-mess-detectorand
magento-phpstanimages at thecomposer install --prefer-diststep:magento/product-community-editionrequiresguzzlehttp/guzzle ^6.3.3,but all 6.x versions are flagged by security advisories and get dropped.
magento/magento2-functional-testing-framework ^3.0requiresspomky-labs/otphp ^10.0, which is likewise dropped; the resolver thenfalls through to newer MFTF versions that require PHP > 7.4.
Root cause: Composer 2.7+ enables
policy.advisories.blockby default,which refuses to install advisory-affected packages. The
audit.ignoreconfig already present only applies to
composer audit, not to install.Fix
Add
RUN composer config policy.advisories.block falsebeforecomposer installin the four affected Dockerfiles:Root cause: Composer 2.7+ enables
policy.advisories.blockby default,which refuses to install advisory-affected packages. The
audit.ignoreconfig already present only applies to
composer audit, not to install.Fix
Add
RUN composer config policy.advisories.block falsebeforecomposer installin the four affected Dockerfiles:magento-mess-detector/Dockerfile:7.3magento-mess-detector/Dockerfile:7.4magento-phpstan/Dockerfile:7.3magento-phpstan/Dockerfile:7.4These are CI static-analysis images built against a pinned, legacy Magento
tree, so install-time advisory blocking adds no value here.