Skip to content

Commit

Permalink
Fix err check in artifact_fetcher when fetching creds from local_keyc…
Browse files Browse the repository at this point in the history
…hain
  • Loading branch information
iain-macdonald committed Aug 28, 2023
1 parent 56d2371 commit cd174a9
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 cd174a9

Please sign in to comment.