Skip to content

Commit

Permalink
fix: define parent for requirements process
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Sep 19, 2024
1 parent ad329e0 commit 8f59ffc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbom4python/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def process_requirements(self, filename):
with open(filename) as dir_file:
lines = dir_file.readlines()
self.set_lifecycle("pre-build")
self.set_parent(filename)
for line in lines:
# Extract package and version
component = line.strip().split("==")
Expand Down

0 comments on commit 8f59ffc

Please sign in to comment.