Skip to content

Commit

Permalink
Fix incorrect OSS-Fuzz source_id setting. (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverchang committed Nov 22, 2021
1 parent f9c1981 commit 9586238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ def _do_update(self, source_repo, repo, vulnerability, relative_path,

bug.update_from_vulnerability(vulnerability)
bug.public = True
bug.source_id = f'{source_repo.name}:{relative_path}'

# OSS-Fuzz sourced bugs use a different format for source_id.
if source_repo.name != 'oss-fuzz' or not bug.source_id:
bug.source_id = f'{source_repo.name}:{relative_path}'

if bug.withdrawn:
bug.status = osv.BugStatus.INVALID
Expand Down

0 comments on commit 9586238

Please sign in to comment.