Skip to content
Permalink
Browse files
fix gofmt issue in newreposecretwithxcrypto
  • Loading branch information
willnorris committed Apr 29, 2022
1 parent bbfb105 commit 97b5d95
Showing 1 changed file with 0 additions and 1 deletion.
@@ -153,7 +153,6 @@ func addRepoSecret(ctx context.Context, client *github.Client, owner string, rep
}

func encryptSecretWithPublicKey(publicKey *github.PublicKey, secretName string, secretValue string) (*github.EncryptedSecret, error) {

decodedPublicKey, err := base64.StdEncoding.DecodeString(publicKey.GetKey())
if err != nil {
return nil, fmt.Errorf("base64.StdEncoding.DecodeString was unable to decode public key: %v", err)

0 comments on commit 97b5d95

Please sign in to comment.