Prevent commits from upstream repositories to be re-processed by forks Closes #19262 See merge request !11511