Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
achiar99 committed Oct 29, 2024
1 parent 4a776ec commit 85fa06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkov/secrets/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ def run(
# 'secret.secret_value' can actually be 'None', but only when 'PotentialSecret' was created
# via 'load_secret_from_dict'
self.save_secret_to_coordinator(secret.secret_value, bc_check_id, resource, secret.line_number, result)

secret_key_by_line = f'{key}_{secret.line_number}'
line_text_censored = line_text
for sec in secret_key_by_line_to_secrets[secret_key_by_line]:
line_text_censored = omit_secret_value_from_line(cast(str, sec.secret_value), line_text_censored)

secret_records[secret_key] = SecretsRecord(
check_id=check_id,
bc_check_id=bc_check_id,
Expand Down

0 comments on commit 85fa06c

Please sign in to comment.