Rebuild fails during upgrade due to `discourse-github` plugin

I run into the same issue. It could be related to

but I am not an expert.