nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: aquasecurity/tfsec
Pull request #935 (2021-07-22 15:43:40)

Update disable_password_authentication_rule.go


Patch:
diff --git a/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule.go b/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule.go
index 25762bea6..6ecf0f338 100644
--- a/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule.go
+++ b/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule.go
@@ -20,7 +20,7 @@ import (
 func init() {
 	scanner.RegisterCheckRule(rule.Rule{
 		Service:   "compute",
-		ShortCode: "diable-password-authentication",
+		ShortCode: "disable-password-authentication",
 		Documentation: rule.RuleDocumentation{
 			Summary:     "Password authentication should be disabled on Azure virtual machines",
 			Explanation: `Access to virtual machines should be authenticated using SSH keys. Removing the option of password authentication enforces more secure methods while removing the risks inherent with passwords.`,


Test patch:
diff --git a/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule_test.go b/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule_test.go
index 761a3b437..72be6edc5 100644
--- a/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule_test.go
+++ b/internal/app/tfsec/rules/azure/compute/disable_password_authentication_rule_test.go
@@ -7,7 +7,7 @@ import (
 )
 
 func Test_AzureDiablePasswordAuthentication(t *testing.T) {
-	expectedCode := "azure-compute-diable-password-authentication"
+	expectedCode := "azure-compute-disable-password-authentication"
 
 	var tests = []struct {
 		name                  string