mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
feat(deps): bump github.com/charmbracelet/keygen from 0.3.0 to 0.4.1 (#3932)
Bumps [github.com/charmbracelet/keygen](https://github.com/charmbracelet/keygen) from 0.3.0 to 0.4.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/charmbracelet/keygen/releases">github.com/charmbracelet/keygen's releases</a>.</em></p> <blockquote> <h2>v0.4.1</h2> <h2>Changelog</h2> <h3>Bug fixes</h3> <ul> <li>ba5b3746062cbc051702c188911f44c1e2b5c986: fix: don't trim key path (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> </ul> <hr /> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <p>Thoughts? Questions? We love hearing from you. Feel free to reach out on <a href="https://twitter.com/charmcli">Twitter</a>, <a href="https://mastodon.technology/@charm">The Fediverse</a>, or on <a href="https://charm.sh/chat">Discord</a>.</p> <h2>v0.4.0</h2> <h1>Breaking Change</h1> <ul> <li>Keygen no longer appends the key type to the file path.</li> <li>Use functional options to specify key type, passphrase, and other options.</li> <li><code>PrivateKeyPEM</code> is now <code>RawPrivateKey</code></li> <li><code>RawProtectedPrivateKey</code> returns the password protected PEM encoded private key.</li> <li><code>PublicKey</code> is now <code>RawAuthorizedKey</code>.</li> <li><code>AuthorizedKey</code> returns the authorized key stripped out of comments and options (the ssh pubic key only).</li> <li><code>PrivateKey</code> now returns the underlying <code>crypto.PrivateKey</code></li> <li>Use <code>Signer</code> to get an <code>ssh.Signer</code> from your key pair.</li> </ul> <h2>Changelog</h2> <h3>New Features</h3> <ul> <li>ab32d1ae447e5d74a47dd64ec2e75d0a827ccc9b: feat(ci): add workflows and goreleaser (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> <li>6ed037835403e5da4a2aa10e5c8568ff4a3bad41: feat: add more tests (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> <li>37c7434ac69d79048521a7e4bfa0f9dfbb0c1f23: feat: bump dependencies (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> <li>8d80e760657463eda55e2f0c773ed3fe3b3e3b08: feat: return ssh.Signer (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> <li>6c0cbbb70022377d611d25d98836e016b2c145a5: feat: specify ECDSA elliptic curve (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>30d86a9582001686d63de3f79e4e90a7b6a62a9e: fix: update x/crypto (<a href="https://redirect.github.com/charmbracelet/keygen/issues/8">#8</a>) (<a href="https://github.com/caarlos0"><code>@caarlos0</code></a>)</li> </ul> <h3>Documentation updates</h3> <ul> <li>eef068dedc6af24e8eda0c99db3a03c988b46cff: docs: new readme footer (<a href="https://github.com/muesli"><code>@muesli</code></a>)</li> <li>f7556041d69b45aef018df2269d29e6d018ae6cc: docs: update example in readme (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> </ul> <h3>Other work</h3> <ul> <li>472a463d0e8df9e768b350d75ee57a8c9baf69d6: ref: change api to expose ssh.PublicKey and authorizd_key (<a href="https://github.com/aymanbagabas"><code>@aymanbagabas</code></a>)</li> </ul> <hr /> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <p>Thoughts? Questions? We love hearing from you. Feel free to reach out on <a href="https://twitter.com/charmcli">Twitter</a>, <a href="https://mastodon.technology/@charm">The Fediverse</a>, or on <a href="https://charm.sh/chat">Discord</a>.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="ba5b374606
"><code>ba5b374</code></a> fix: don't trim key path</li> <li><a href="6ed0378354
"><code>6ed0378</code></a> feat: add more tests</li> <li><a href="6c0cbbb700
"><code>6c0cbbb</code></a> feat: specify ECDSA elliptic curve</li> <li><a href="8d80e76065
"><code>8d80e76</code></a> feat: return ssh.Signer</li> <li><a href="3dbbf0ca45
"><code>3dbbf0c</code></a> chore: go mod tidy</li> <li><a href="37c7434ac6
"><code>37c7434</code></a> feat: bump dependencies</li> <li><a href="472a463d0e
"><code>472a463</code></a> ref: change api to expose ssh.PublicKey and authorizd_key</li> <li><a href="30d86a9582
"><code>30d86a9</code></a> fix: update x/crypto (<a href="https://redirect.github.com/charmbracelet/keygen/issues/8">#8</a>)</li> <li><a href="eef068dedc
"><code>eef068d</code></a> docs: new readme footer</li> <li><a href="f7556041d6
"><code>f755604</code></a> docs: update example in readme</li> <li>Additional commits viewable in <a href="https://github.com/charmbracelet/keygen/compare/v0.3.0...v0.4.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/charmbracelet/keygen&package-manager=go_modules&previous-version=0.3.0&new-version=0.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
777b5a1ddb
commit
2d5cb60771
4
go.mod
4
go.mod
@ -12,7 +12,7 @@ require (
|
||||
github.com/caarlos0/go-reddit/v3 v3.0.1
|
||||
github.com/caarlos0/go-shellwords v1.0.12
|
||||
github.com/caarlos0/log v0.2.2
|
||||
github.com/charmbracelet/keygen v0.3.0
|
||||
github.com/charmbracelet/keygen v0.4.1
|
||||
github.com/charmbracelet/lipgloss v0.7.1
|
||||
github.com/chrismellard/docker-credential-acr-env v0.0.0-20220327082430-c57b701bfc08
|
||||
github.com/dghubble/go-twitter v0.0.0-20211115160449-93a8679adecb
|
||||
@ -118,7 +118,7 @@ require (
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb // indirect
|
||||
github.com/caarlos0/sshmarshal v0.0.0-20220308164159-9ddb9f83c6b3 // indirect
|
||||
github.com/caarlos0/sshmarshal v0.1.0 // indirect
|
||||
github.com/cavaliergopher/cpio v1.0.1 // indirect
|
||||
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
|
8
go.sum
8
go.sum
@ -704,8 +704,8 @@ github.com/caarlos0/go-shellwords v1.0.12 h1:HWrUnu6lGbWfrDcFiHcZiwOLzHWjjrPVehU
|
||||
github.com/caarlos0/go-shellwords v1.0.12/go.mod h1:bYeeX1GrTLPl5cAMYEzdm272qdsQAZiaHgeF0KTk1Gw=
|
||||
github.com/caarlos0/log v0.2.2 h1:Rier7889+dTKHjvwf0cMNu8DjMF+/wCYC7wrPj9fXFk=
|
||||
github.com/caarlos0/log v0.2.2/go.mod h1:IbSeDN+hKHdOwE6t2z9i2rcraz+r6N1XZkRHE4BAKm0=
|
||||
github.com/caarlos0/sshmarshal v0.0.0-20220308164159-9ddb9f83c6b3 h1:w2ANoiT4ubmh4Nssa3/QW1M7lj3FZkma8f8V5aBDxXM=
|
||||
github.com/caarlos0/sshmarshal v0.0.0-20220308164159-9ddb9f83c6b3/go.mod h1:7Pd/0mmq9x/JCzKauogNjSQEhivBclCQHfr9dlpDIyA=
|
||||
github.com/caarlos0/sshmarshal v0.1.0 h1:zTCZrDORFfWh526Tsb7vCm3+Yg/SfW/Ub8aQDeosk0I=
|
||||
github.com/caarlos0/sshmarshal v0.1.0/go.mod h1:7Pd/0mmq9x/JCzKauogNjSQEhivBclCQHfr9dlpDIyA=
|
||||
github.com/caarlos0/testfs v0.4.4 h1:3PHvzHi5Lt+g332CiShwS8ogTgS3HjrmzZxCm6JCDr8=
|
||||
github.com/caarlos0/testfs v0.4.4/go.mod h1:bRN55zgG4XCUVVHZCeU+/Tz1Q6AxEJOEJTliBy+1DMk=
|
||||
github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg=
|
||||
@ -725,8 +725,8 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
|
||||
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
|
||||
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/charmbracelet/keygen v0.3.0 h1:mXpsQcH7DDlST5TddmXNXjS0L7ECk4/kLQYyBcsan2Y=
|
||||
github.com/charmbracelet/keygen v0.3.0/go.mod h1:1ukgO8806O25lUZ5s0IrNur+RlwTBERlezdgW71F5rM=
|
||||
github.com/charmbracelet/keygen v0.4.1 h1:ylwHCcCrb4UL2nHrUvVwME+/RFACcX1sjopOrIkc14g=
|
||||
github.com/charmbracelet/keygen v0.4.1/go.mod h1:4e4FT3HSdLU/u83RfJWvzJIaVb8aX4MxtDlfXwpDJaI=
|
||||
github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E=
|
||||
github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c=
|
||||
github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw=
|
||||
|
@ -240,7 +240,7 @@ func TestFullPipe(t *testing.T) {
|
||||
} {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t, keygen.Ed25519, nil)
|
||||
key := makeKey(t, keygen.Ed25519, "")
|
||||
|
||||
folder := t.TempDir()
|
||||
ctx := testctx.NewWithCfg(
|
||||
@ -338,7 +338,7 @@ func TestFullPipe(t *testing.T) {
|
||||
|
||||
func TestRunPipe(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t, keygen.Ed25519, nil)
|
||||
key := makeKey(t, keygen.Ed25519, "")
|
||||
|
||||
folder := t.TempDir()
|
||||
ctx := testctx.NewWithCfg(
|
||||
@ -474,7 +474,7 @@ func TestRunPipeNoBuilds(t *testing.T) {
|
||||
|
||||
func TestRunPipeBinaryRelease(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t, keygen.Ed25519, nil)
|
||||
key := makeKey(t, keygen.Ed25519, "")
|
||||
folder := t.TempDir()
|
||||
ctx := testctx.NewWithCfg(
|
||||
config.Project{
|
||||
@ -696,7 +696,7 @@ func TestSkip(t *testing.T) {
|
||||
|
||||
func TestKeyPath(t *testing.T) {
|
||||
t.Run("with valid path", func(t *testing.T) {
|
||||
path := makeKey(t, keygen.Ed25519, nil)
|
||||
path := makeKey(t, keygen.Ed25519, "")
|
||||
result, err := keyPath(path)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, path, result)
|
||||
@ -708,7 +708,7 @@ func TestKeyPath(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("with password protected key path", func(t *testing.T) {
|
||||
path := makeKey(t, keygen.Ed25519, []byte("pwd"))
|
||||
path := makeKey(t, keygen.Ed25519, "pwd")
|
||||
bts, err := os.ReadFile(path)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -720,7 +720,7 @@ func TestKeyPath(t *testing.T) {
|
||||
t.Run("with key", func(t *testing.T) {
|
||||
for _, algo := range []keygen.KeyType{keygen.Ed25519, keygen.RSA} {
|
||||
t.Run(string(algo), func(t *testing.T) {
|
||||
path := makeKey(t, algo, nil)
|
||||
path := makeKey(t, algo, "")
|
||||
bts, err := os.ReadFile(path)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -739,7 +739,7 @@ func TestKeyPath(t *testing.T) {
|
||||
require.Equal(t, "", result)
|
||||
})
|
||||
t.Run("with invalid EOF", func(t *testing.T) {
|
||||
path := makeKey(t, keygen.Ed25519, nil)
|
||||
path := makeKey(t, keygen.Ed25519, "")
|
||||
bts, err := os.ReadFile(path)
|
||||
require.NoError(t, err)
|
||||
|
||||
@ -767,14 +767,14 @@ func makeBareRepo(tb testing.TB) string {
|
||||
return dir
|
||||
}
|
||||
|
||||
func makeKey(tb testing.TB, algo keygen.KeyType, pass []byte) string {
|
||||
func makeKey(tb testing.TB, algo keygen.KeyType, pass string) string {
|
||||
tb.Helper()
|
||||
|
||||
dir := tb.TempDir()
|
||||
filepath := filepath.Join(dir, "id")
|
||||
_, err := keygen.NewWithWrite(filepath, pass, algo)
|
||||
filepath := filepath.Join(dir, "id_"+algo.String())
|
||||
_, err := keygen.New(filepath, keygen.WithKeyType(algo), keygen.WithWrite(), keygen.WithPassphrase(pass))
|
||||
require.NoError(tb, err)
|
||||
return fmt.Sprintf("%s_%s", filepath, algo)
|
||||
return filepath
|
||||
}
|
||||
|
||||
func requireEqualRepoFiles(tb testing.TB, folder, name, url string) {
|
||||
|
Loading…
Reference in New Issue
Block a user