Skip to content

Commit b38309c

Browse files
committed
fix: add special case for drupal/currency
1 parent 465ff2d commit b38309c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

advisories/currency/DRUPAL-CONTRIB-2025-110.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"affected": [
1111
{
1212
"package": {
13-
"ecosystem": "Packagist",
13+
"ecosystem": "Packagist:https://packages.drupal.org/8",
1414
"name": "drupal/currency"
1515
},
1616
"severity": [],

scripts/generate_osv_advisories.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,13 @@ def build_osv_advisory(
413413
ecosystem = 'Packagist'
414414

415415
# record the Composer repository the affected package is sourced from
416-
if composer_package_name not in drupal_packages_available_on_packagist:
416+
#
417+
# note there is a special case for drupal/currency as it was published
418+
# on Packagist initially before later moving to the Drupal repository
419+
if (
420+
composer_package_name == 'drupal/currency'
421+
or composer_package_name not in drupal_packages_available_on_packagist
422+
):
417423
ecosystem += ':https://packages.drupal.org/8'
418424

419425
osv_advisory: osv.Vulnerability = {

0 commit comments

Comments
 (0)