You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Composer/Command/AuditCommand.php
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,16 @@ protected function configure(): void
35
35
newInputOption('locked', null, InputOption::VALUE_NONE, 'Audit based on the lock file instead of the installed packages.'),
36
36
newInputOption('abandoned', null, InputOption::VALUE_REQUIRED, 'Behavior on abandoned packages. Must be "ignore", "report", or "fail".', null, Auditor::ABANDONEDS),
37
37
newInputOption('ignore-severity', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Ignore advisories of a certain severity level.', [], ['low', 'medium', 'high', 'critical']),
38
+
newInputOption('ignore-unreachable', null, InputOption::VALUE_NONE, 'Ignore repositories that are unreachable or return a non-200 status code.'),
38
39
])
39
40
->setHelp(
40
41
<<<EOT
41
42
The <info>audit</info> command checks for security vulnerability advisories for installed packages.
42
43
43
44
If you do not want to include dev dependencies in the audit you can omit them with --no-dev
44
45
46
+
If you want to ignore repositories that are unreachable or return a non-200 status code, use --ignore-unreachable
47
+
45
48
Read more at https://getcomposer.org/doc/03-cli.md#audit
46
49
EOT
47
50
)
@@ -75,6 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
->willThrowException(new \Composer\Downloader\TransportException('The "https://example.org/packages.json" file could not be downloaded: HTTP/1.1 404 Not Found', 404));
0 commit comments