Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgandrathi committed Sep 7, 2023
1 parent 85d6118 commit 9c2a8a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scans/descriptor_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9c2a8a9

Please sign in to comment.