Skip to content

Commit

Permalink
fix resource in git history scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Amelchenko committed Aug 24, 2023
1 parent cade73f commit ba06fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkov/secrets/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def run(
code_block=[(secret.line_number, line_text_censored)],
file_path=relative_file_path,
file_line_range=[secret.line_number, secret.line_number + 1],
resource=secret.secret_hash,
resource=f'{added_commit_hash}:{secret.secret_hash}' if added_commit_hash else secret.secret_hash,
check_class="",
evaluations=None,
file_abs_path=os.path.abspath(secret.filename),
Expand Down

0 comments on commit ba06fb8

Please sign in to comment.