Skip to content

Commit

Permalink
Merge pull request #1010 from k4leung4/more-keychain
Browse files Browse the repository at this point in the history
use crane.Keychain to support google account for bundle pull in build
  • Loading branch information
imjasonh authored Jun 28, 2024
2 parents bd1fcc0 + 192a361 commit 93be67c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/private/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"chainguard.dev/apko/pkg/build/types"
"chainguard.dev/melange/pkg/config"
"github.com/dominikbraun/graph"
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/gcrane"
"github.com/google/go-containerregistry/pkg/name"
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/google/go-containerregistry/pkg/v1/empty"
Expand Down Expand Up @@ -265,7 +265,7 @@ func Pull(pull string) (*Bundles, error) {
return nil, err
}

idx, err := remote.Index(ref, remote.WithAuthFromKeychain(authn.DefaultKeychain), remote.WithUserAgent("wolfictl bundle"))
idx, err := remote.Index(ref, remote.WithAuthFromKeychain(gcrane.Keychain), remote.WithUserAgent("wolfictl bundle"))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 93be67c

Please sign in to comment.