Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Insights needs an internet connection to inspect security issues #704

Open
tarlepp opened this issue Mar 4, 2025 · 3 comments
Open

Comments

@tarlepp
Copy link
Contributor

tarlepp commented Mar 4, 2025

Currently PHP Insights is failing because of following error:

• [Security] Security issues found on dependencies:
  PHP Insights needs an internet connection to inspect security issues.

This can be "solved" by adding following to phpinsights.php file:

<?php

return [
    ...,
    remove => [
        ...
        NunoMaduro\PhpInsights\Domain\Insights\ForbiddenSecurityIssues::class,
    ],
];

Any proper solution for this?

@trovster
Copy link

trovster commented Mar 4, 2025

I have been getting the same error. The code checks against https://repo.packagist.org/api/security-advisories/ which is returning a 404, so I think that is why.

Running composer audit I get no issues.

@nivseb
Copy link

nivseb commented Mar 4, 2025

The problem is the url for the api from the constant PACKAGIST_ADVISORIES_URL.

curl "https://packagist.org/api/security-advisories/?packages[]=monolog/monolog" works correct.
But the subdomain it lead in to the 404.

@soymgomez
Copy link

I just made a PR #705 making the change. Let's see if @nunomaduro can see it and accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants