-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to go122 165 #166
Update to go122 165 #166
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #166 +/- ##
===========================================
- Coverage 71.36% 21.04% -50.33%
===========================================
Files 40 58 +18
Lines 4700 18940 +14240
===========================================
+ Hits 3354 3985 +631
- Misses 1066 14521 +13455
- Partials 280 434 +154 ☔ View full report in Codecov by Sentry. |
@@ -625,7 +625,7 @@ func generatePrivateKey(passphrase []byte) ([]byte, error) { | |||
} | |||
|
|||
if len(passphrase) > 0 { | |||
pemBlock, err = x509.EncryptPEMBlock(rand.Reader, pemBlock.Type, pemBlock.Bytes, passphrase, x509.PEMCipherAES256) | |||
pemBlock, err = ssh.MarshalPrivateKeyWithPassphrase(privateKey, "", passphrase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changed because x509.EncryptPEMBlock( is deprecated which the linter caught. It hard matters since it was in a test but for completeness, I updated it.
Update to Go1.22.
Update CI matrix to include 1.21 and 1.22.
Update GH action workflows to latest version.
Update golang-ci versions to 1.21.
Update go.mod to 1.21.
Update all dependencies.