Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Oct 18, 2023
1 parent 987b48c commit b5bf7cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions registry/remote/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,7 @@ func (s *manifestStore) deleteWithIndexing(ctx context.Context, target ocispec.D
if err := limitSize(target, s.repo.MaxMetadataBytes); err != nil {
return err
}
// "pull" and "delete" scopes are required, "push" is potentially needed
// for client-side indexing
ctx = auth.AppendRepositoryScope(ctx, s.repo.Reference, auth.ActionPull, auth.ActionPush, auth.ActionDelete)
ctx = auth.AppendRepositoryScope(ctx, s.repo.Reference, auth.ActionPull, auth.ActionDelete)
manifestJSON, err := content.FetchAll(ctx, s, target)
if err != nil {
return err
Expand Down

0 comments on commit b5bf7cb

Please sign in to comment.