Skip to content

Commit

Permalink
Update SecurityUpdateCommands endpoint (#5043)
Browse files Browse the repository at this point in the history
  • Loading branch information
webflo committed Jan 25, 2022
1 parent 1093fca commit b7d97ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Commands/pm/SecurityUpdateCommands.php
Expand Up @@ -101,9 +101,8 @@ public function suggestComposerCommand($updates): void
*/
protected function fetchAdvisoryComposerJson()
{
// We use the v2 branch for now, as per https://github.com/drupal-composer/drupal-security-advisories/pull/11.
$client = new Client(['handler' => $this->getStack()]);
$response = $client->get('https://raw.githubusercontent.com/drupal-composer/drupal-security-advisories/8.x-v2/composer.json');
$response = $client->get('https://raw.githubusercontent.com/drupal-composer/drupal-security-advisories/9.x/composer.json');
$security_advisories_composer_json = json_decode($response->getBody(), true);
return $security_advisories_composer_json;
}
Expand Down

0 comments on commit b7d97ac

Please sign in to comment.