Skip to content

Commit 3388f88

Browse files
authored
Fix istio importer by skipping UI metadata files. (#570)
Signed-off-by: Shivam Sandbhor <[email protected]>
1 parent 4677f70 commit 3388f88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vulnerabilities/importers/istio.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def updated_advisories(self) -> Set[Advisory]:
5858
files = self._added_files.union(self._updated_files)
5959
advisories = []
6060
for f in files:
61+
# Istio website has files with name starting with underscore, these contain metadata
62+
# required for rendering the website. We're not interested in these.
63+
# See also https://github.com/nexB/vulnerablecode/issues/563
64+
if f.endswith("_index.md"):
65+
continue
6166
processed_data = self.process_file(f)
6267
if processed_data:
6368
advisories.extend(processed_data)

0 commit comments

Comments
 (0)