Skip to content

Commit 9987ebc

Browse files
committed
fix: create issues only for supply chain observations
1 parent f8643be commit 9987ebc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/application/import_observations/services/import_observations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ def _get_initial_status(product: Product) -> str:
765765

766766

767767
def _get_github_issue_id(observation: Observation) -> Optional[str]:
768+
if not observation.vulnerability_id:
769+
return None
770+
768771
github_pat = os.getenv("GITHUB_ISSUES_PAT")
769772
if not github_pat:
770773
return None

0 commit comments

Comments
 (0)