Rewrite to fix bitbucket permissions

Closes #3586555

Merge request reports

Loading