Skip to content

Commit

Permalink
Composer: add vulnerability mirroring - cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Valentijn Scholten <valentijnscholten@gmail.com>
  • Loading branch information
valentijnscholten committed Jan 5, 2025
1 parent 6489de1 commit 1f39a95
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ boolean updateDatasource(final JSONObject jsonAdvisories, boolean syncAliases) {
List<VulnerableSoftware> vsList = mapVulnerabilityToVulnerableSoftware(qm, advisory);
qm.persist(vsList);
final Vulnerability finalSynchronizedVulnerability = synchronizedVulnerability;
//TODO VS make sure only DRUPAL or COMPOSER is used as attribution source
vsList.forEach(vs -> qm.updateAffectedVersionAttribution(finalSynchronizedVulnerability, vs,
vulnerabilitySource));
vsList = qm.reconcileVulnerableSoftware(synchronizedVulnerability, vsListOld, vsList,
Expand Down

0 comments on commit 1f39a95

Please sign in to comment.