Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
1 change: 0 additions & 1 deletion example/newreposecretwithxcrypto/main.go
Expand Up @@ -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)
Expand Down

0 comments on commit 97b5d95

Please sign in to comment.