Skip to content

Commit

Permalink
azure storage key optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
omryMen committed Jul 9, 2024
1 parent b35784c commit 4daf299
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions detect_secrets/plugins/azure_storage_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,7 @@ def context_keys_exists(self, result: PotentialSecret, string: str) -> bool:
def contains_integrity(self, secret_val: str, string: str) -> bool:
# we want to ignore cases of lock files which contains hashes
context_parts = string.split('\n')
return any(len(part) < self.max_part_length and
secret_val in part and self.integrity_regex.search(part) is not None for part in context_parts)
return any(
len(part) < self.max_part_length and
secret_val in part and self.integrity_regex.search(part) is not None for part in context_parts
)

0 comments on commit 4daf299

Please sign in to comment.