From 6335551cc28026d1974740b03c4046ab6c0d3a90 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 8 Feb 2024 16:24:16 +0100 Subject: [PATCH] Fix diagnose auditing of composer dependencies in phar files --- src/Composer/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index 14449a13e..9a2e27f5b 100644 --- a/src/Composer/Compiler.php +++ b/src/Composer/Compiler.php @@ -120,7 +120,6 @@ class Compiler ->notPath('/bin\/(jsonlint|validate-json|simple-phpunit|phpstan|phpstan\.phar)(\.bat)?$/') ->notPath('justinrainbow/json-schema/demo/') ->notPath('justinrainbow/json-schema/dist/') - ->notPath('composer/installed.json') ->notPath('composer/LICENSE') ->exclude('Tests') ->exclude('tests') @@ -131,6 +130,7 @@ class Compiler $extraFiles = []; foreach ([ + __DIR__ . '/../../vendor/composer/installed.json', __DIR__ . '/../../vendor/composer/spdx-licenses/res/spdx-exceptions.json', __DIR__ . '/../../vendor/composer/spdx-licenses/res/spdx-licenses.json', CaBundle::getBundledCaBundlePath(),