Merge branch 'dm-fix-registry-with-sudo-token' into 'master'
Fix pulling and pushing using a personal access token with the sudo scope
Closes #40466
See merge request gitlab-org/gitlab-ce!15571
(cherry picked from commit 89c9d2ad)
453b1780 Fix pulling and pushing using a personal access token with the sudo scope