fix: change size of dummy key to 2048

This fixes the CodeQL scan issue for using a weak key.
This commit is contained in:
Sylvia Crowe 2024-02-15 12:12:34 -08:00
parent 42963f4287
commit 550e93e62a

View File

@ -40,7 +40,7 @@ func (uice UserInputCancelError) Error() string {
// different public keys even when the current key cannot be
// properly parsed
func createDummySigner() ([]ssh.Signer, error) {
dummyKey, err := rsa.GenerateKey(rand.Reader, 1024)
dummyKey, err := rsa.GenerateKey(rand.Reader, 2048)
if err != nil {
return nil, err
}