Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tronxd committed May 9, 2024
1 parent 837e020 commit 2a81394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detect_secrets/plugins/azure_storage_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def context_keys_exists(self, result: PotentialSecret, string: str) -> bool:
for secret_regex in self.context_keys:
regex = re.compile(
secret_regex.format(
secret=re.escape(result.secret_value), account_key=self.account_key, azure=self.azure,
secret=re.escape(result.secret_value), account_key=self.account_key,
azure=self.azure,
), re.MULTILINE,
)
if regex.pattern.startswith(self.account_key) and self.account_key not in string:
Expand Down

0 comments on commit 2a81394

Please sign in to comment.