Added additional advisories to composer-audit-ignore action#101
Merged
Conversation
|
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.



Description:
In this environment (PHP 7.4), you are running Composer version 2.9.1.
• Starting with Composer 2.9, automatic blocking of insecure packages ( audit.block-insecure ) is enabled by default. This
means Composer completely excludes any package version affected by known security advisories from the pool of satisfiable
versions.
• twig/twig v3.11.3 (and all earlier versions compatible with PHP 7.4) has several open security advisories (e.g., PKSA-
fbvq-z33h-r2np , PKSA-g9zw-qxh8-pq8w , etc.). As a result, Composer filters them out and refuses to load them.
• Because the older versions are blocked, the only versions of twig/twig that Composer considers are the newer, secure
versions (such as v3.27.0 / v3.27.0-dev ).
• However, these newer versions require php >=8.1.0 , which conflicts with the PHP 7.4 version configured in your environment.
──────
2. Solutions
To allow the installation of twig/twig 3.11 (or lower) under PHP 7.4, you have three options:
Option A: Disable insecure package blocking (Recommended)
You can disable Composer's automatic blocking of insecure packages by adding the audit.block-insecure setting to your
composer.json :
Disabling this setting allows twig/twig to resolve to v3.11.3 and successfully updates all dependencies (as verified by a
dry-run check).
Option B: Ignore specific security advisories
If you only want to bypass blocking for these specific twig/twig advisories, you can ignore them in your composer.json :
For QA:
Documentation: