Parcourir la source

Ignore `ssh.InsecureKeyAlgoDSA` usage from `staticcheck` linter

Herman Slatman il y a 1 an
Parent
commit
5c2059ac13
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      authority/provisioner/sign_ssh_options.go

+ 1 - 1
authority/provisioner/sign_ssh_options.go

@@ -375,7 +375,7 @@ func (v sshDefaultPublicKeyValidator) Valid(cert *ssh.Certificate, _ SignSSHOpti
 				8*keyutil.MinRSAKeyBytes, keyutil.MinRSAKeyBytes)
 		}
 		return nil
-	case ssh.KeyAlgoDSA:
+	case ssh.InsecureKeyAlgoDSA: //nolint:staticcheck // only using the constant for lookup; no dependent logic
 		return errs.BadRequest("ssh certificate key algorithm (DSA) is not supported")
 	default:
 		return nil