diff --git a/terraform/lib/dependabot/terraform/file_updater.rb b/terraform/lib/dependabot/terraform/file_updater.rb index 7a4e69aaaa..e2cf3a8b9b 100644 --- a/terraform/lib/dependabot/terraform/file_updater.rb +++ b/terraform/lib/dependabot/terraform/file_updater.rb @@ -173,7 +173,10 @@ def lookup_hash_architecture # rubocop:disable Metrics/AbcSize, Metrics/MethodLe # Terraform will update the lockfile in place so we use a fresh lockfile for each lookup File.write(".terraform.lock.hcl", lockfile_hash_removed) - SharedHelpers.run_shell_command("terraform providers lock -platform=#{arch} #{provider_source} -no-color") + SharedHelpers.run_shell_command( + "terraform providers lock -platform=#{arch} #{provider_source} -no-color", + fingerprint: "terraform providers lock -platform= -no-color" + ) updated_lockfile = File.read(".terraform.lock.hcl") updated_hashes = extract_provider_h1_hashes(updated_lockfile, declaration_regex) @@ -228,7 +231,10 @@ def update_lockfile_declaration(updated_manifest_files) # rubocop:disable Metric File.write(".terraform.lock.hcl", lockfile_dependency_removed) - SharedHelpers.run_shell_command("terraform providers lock #{platforms} #{provider_source}") + SharedHelpers.run_shell_command( + "terraform providers lock #{platforms} #{provider_source}", + fingerprint: "terraform providers lock " + ) updated_lockfile = File.read(".terraform.lock.hcl") updated_dependency = updated_lockfile.scan(declaration_regex).first