diff --git a/scans/descriptor_scan.py b/scans/descriptor_scan.py index 6220c98..e5f8327 100644 --- a/scans/descriptor_scan.py +++ b/scans/descriptor_scan.py @@ -319,7 +319,8 @@ def _visit_link(self, link: str) -> Optional[requests.Response]: # Gracefully handle links that result in an exception, report them via warning, and skip any further tests try: # If we are requesting a lifecycle event, ensure we perform signed-install authentication check - if self._is_lifecycle_link(link) and any(x in link for x in ('installed', 'install', 'uninstalled', 'uninstall')): + if self._is_lifecycle_link(link) and any(x in link for x in ('installed', 'install', 'uninstalled', + 'uninstall')): event_type = 'uninstalled' if any(x in link for x in ('uninstalled', 'uninstall')) else 'installed' rs256_jwt = self._generate_fake_signed_install_jwt(link, 'POST') task['headers']['Content-Type'] = 'application/json'