Skip to content

Commit

Permalink
Fix istio importer by skipping UI metadata files. (#570)
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Sandbhor <[email protected]>
  • Loading branch information
sbs2001 authored Oct 26, 2021
1 parent 4677f70 commit 3388f88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vulnerabilities/importers/istio.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def updated_advisories(self) -> Set[Advisory]:
files = self._added_files.union(self._updated_files)
advisories = []
for f in files:
# Istio website has files with name starting with underscore, these contain metadata
# required for rendering the website. We're not interested in these.
# See also https://github.com/nexB/vulnerablecode/issues/563
if f.endswith("_index.md"):
continue
processed_data = self.process_file(f)
if processed_data:
advisories.extend(processed_data)
Expand Down

0 comments on commit 3388f88

Please sign in to comment.