Skip to content

Commit

Permalink
Merge pull request #77 from sachinshaji/feat/debian-findsources-issue
Browse files Browse the repository at this point in the history
fix: bom_ref is not set always hence adding purl also for the checks
  • Loading branch information
tngraf authored Sep 13, 2024
2 parents 3280a03 + 201532a commit 0951dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capycli/bom/findsources.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def find_sources(self, bom: Bom) -> Tuple[int, int]:
source_url = None

# skip source URL check for debian components as github url s are invalid for Debian.
if component.bom_ref.value.startswith("pkg:deb/debian/"):
if str(component.purl).startswith("pkg:deb/debian/") or str(component.bom_ref).startswith("pkg:deb/debian"):
print_red("No source code check for debian components!")
continue

Expand Down

0 comments on commit 0951dfa

Please sign in to comment.