bots: Fix use of GitHub api objects in image-refresh
bots: Fix use of GitHub api objects in image-refresh

Closes #6610
deryni/cockpit,harishanand95/cockpit,martinpitt/cockpit,xhad/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,andreasn/cockpit,andreasn/cockpit,harishanand95/cockpit,martinpitt/cockpit,mvollmer/cockpit,xhad/cockpit,larskarlitski/cockpit,dperpeet/cockpit,martinpitt/cockpit,xhad/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,andreasn/cockpit,petervo/cockpit,petervo/cockpit,larskarlitski/cockpit,harishanand95/cockpit,garrett/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,stefwalter/cockpit,xhad/cockpit,xhad/cockpit,deryni/cockpit,stefwalter/cockpit,andreasn/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,larsu/cockpit,garrett/cockpit,martinpitt/cockpit,deryni/cockpit,andreasn/cockpit,cockpituous/cockpit,cockpituous/cockpit,mareklibra/cockpit,larsu/cockpit,dperpeet/cockpit,cockpit-project/cockpit,larsu/cockpit,larskarlitski/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,garrett/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,petervo/cockpit,mareklibra/cockpit,dperpeet/cockpit,petervo/cockpit,xhad/cockpit,Scribery/cockpit,cockpituous/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,Scribery/cockpit,mareklibra/cockpit,dperpeet/cockpit,andreasn/cockpit,stefwalter/cockpit,deryni/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,larsu/cockpit,petervo/cockpit,Scribery/cockpit,larskarlitski/cockpit,mvollmer/cockpit,mareklibra/cockpit,mareklibra/cockpit,deryni/cockpit,larskarlitski/cockpit,dperpeet/cockpit,larsu/cockpit,petervo/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,garrett/cockpit,Scribery/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,deryni/cockpit,mareklibra/cockpit,garrett/cockpit,larsu/cockpit,Scribery/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,petervo/cockpit,martinpitt/cockpit,harishanand95/cockpit,mvollmer/cockpit,cockpit-project/cockpit,deryni/cockpit,harishanand95/cockpit,larskarlitski/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,cockpituous/cockpit,Scribery/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,xhad/cockpit,cockpituous/cockpit,andreasn/cockpit,mvollmer/cockpit