Skip to content

Commit a8f707a

Browse files
committed
Fixed the changes asked in review Signed-off-by: Shrish Mishra <shrish409@gmail.com>
Signed-off-by: Shrish0098 <shrish409@gmail.com>
1 parent 0f8e296 commit a8f707a

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

vulnerabilities/importers/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@
3434
from vulnerabilities.importers import xen
3535
from vulnerabilities.pipelines import VulnerableCodeBaseImporterPipeline
3636
from vulnerabilities.pipelines import alpine_linux_importer
37+
from vulnerabilities.pipelines import anchore_importer
3738
from vulnerabilities.pipelines import github_importer
3839
from vulnerabilities.pipelines import gitlab_importer
3940
from vulnerabilities.pipelines import nginx_importer
4041
from vulnerabilities.pipelines import npm_importer
4142
from vulnerabilities.pipelines import nvd_importer
4243
from vulnerabilities.pipelines import pypa_importer
4344
from vulnerabilities.pipelines import pysec_importer
44-
from vulnerabilities.pipelines.anchore_importer import AnchoreImporterPipeline
45-
4645

4746
IMPORTERS_REGISTRY = [
4847
openssl.OpensslImporter,
@@ -79,7 +78,7 @@
7978
nvd_importer.NVDImporterPipeline,
8079
pysec_importer.PyPIImporterPipeline,
8180
alpine_linux_importer.AlpineLinuxImporterPipeline,
82-
AnchoreImporterPipeline,
81+
anchore_importer.AnchoreImporterPipeline, # Updated to follow the consistent style
8382
]
8483

8584
IMPORTERS_REGISTRY = {

vulnerabilities/pipelines/anchore_importer.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1+
#
2+
# Copyright (c) nexB Inc. and others. All rights reserved.
3+
# VulnerableCode is a trademark of nexB Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+
# See https://github.com/aboutcode-org/vulnerablecode for support or download.
7+
# See https://aboutcode.org for more information about nexB OSS projects.
8+
#
9+
110
from datetime import datetime
211
from typing import Iterable
12+
313
import requests
414
import yaml
515
from packageurl import PackageURL
616
from univers.versions import SemverVersion
717

8-
from vulnerabilities.importer import AdvisoryData, AffectedPackage, Reference
18+
from vulnerabilities.importer import AdvisoryData
19+
from vulnerabilities.importer import AffectedPackage
20+
from vulnerabilities.importer import Reference
921
from vulnerabilities.pipelines import VulnerableCodeBaseImporterPipeline
1022

1123

0 commit comments

Comments
 (0)