Skip to content

Commit 0855f97

Browse files
DmitriyLewenRingoDev
authored andcommitted
fix: don't use scope for trivy registry login command (aquasecurity#8393)
1 parent 77eedcc commit 0855f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/auth/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Login(ctx context.Context, registry string, opts flag.Options) error {
3434
_, err = transport.NewWithContext(ctx, reg, &authn.Basic{
3535
Username: opts.Credentials[0].Username,
3636
Password: opts.Credentials[0].Password,
37-
}, httpTransport(opts), []string{reg.Scope(transport.PullScope)})
37+
}, httpTransport(opts), nil)
3838
if err != nil {
3939
return xerrors.Errorf("failed to authenticate: %w", err)
4040
}

0 commit comments

Comments
 (0)