Skip to content

Commit 6d4fb5b

Browse files
committed
update risk acceptance to only update global cves
1 parent f6277f1 commit 6d4fb5b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

risk_acceptance/vulnerability_exception.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def process_exceptions(auth_header, url, ssl_verification, directory_path, exist
173173
"entityValue": entity, "context": [context_dict]}
174174
existing_entity_exceptions.append(existing_entity_exceptions_dict)
175175
else:
176-
determine_exception_changes(
177-
auth_header, url, ssl_verification, existing_risk_exceptions, entity, expiration_date, reason, description)
176+
if contextType == "global":
177+
determine_exception_changes(
178+
auth_header, url, ssl_verification, existing_risk_exceptions, entity, expiration_date, reason, description)
178179

179180
line_count += 1
180181
print(f'Processed {line_count} lines.')

0 commit comments

Comments
 (0)