We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
scope
trivy registry login
1 parent 77eedcc commit 0855f97Copy full SHA for 0855f97
pkg/commands/auth/run.go
@@ -34,7 +34,7 @@ func Login(ctx context.Context, registry string, opts flag.Options) error {
34
_, err = transport.NewWithContext(ctx, reg, &authn.Basic{
35
Username: opts.Credentials[0].Username,
36
Password: opts.Credentials[0].Password,
37
- }, httpTransport(opts), []string{reg.Scope(transport.PullScope)})
+ }, httpTransport(opts), nil)
38
if err != nil {
39
return xerrors.Errorf("failed to authenticate: %w", err)
40
}
0 commit comments