Skip to content

Commit

Permalink
Merge pull request #10 from buildbuddy-io/fix
Browse files Browse the repository at this point in the history
Fix error check when fetching creds from local_keychain in artifact_fetcher
  • Loading branch information
iain-macdonald authored Aug 28, 2023
2 parents 56d2371 + cd174a9 commit f63ea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/artifact_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func newRemoteStore(refspec reference.Spec) (*remote.Repository, error) {
Cache: auth.DefaultCache,
Credential: func(ctx context.Context, host string) (auth.Credential, error) {
username, password, err := local_keychain.Keychain(ctx).GetCredentials(host, refspec)
if err != nil {
if err == nil {
return auth.Credential{
Username: username,
Password: password,
Expand Down

0 comments on commit f63ea61

Please sign in to comment.