Skip to content

Commit 621ef88

Browse files
committed
Merge branch 'stackable' of https://github.com/stackabletech/SecObserve into stackable
2 parents 9169a3e + 7c82b2a commit 621ef88

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

backend/unittests/import_observations/parsers/ocsf/files/prowler_kubernetes.ocsf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,4 @@
363363
"category_uid": 2,
364364
"class_uid": 2004
365365
}
366-
]
366+
]

0 commit comments

Comments
 (0)