diff --git a/lib/platform/github/gh-got-wrapper.ts b/lib/platform/github/gh-got-wrapper.ts
index c13adbe49be7ffbec50ba34f7a7fd5bb35d0c798..e99fc5b14ed8301fc31648363c5bc8c0195fb0ff 100644
--- a/lib/platform/github/gh-got-wrapper.ts
+++ b/lib/platform/github/gh-got-wrapper.ts
@@ -146,6 +146,15 @@ async function get(
         throw new Error('platform-failure');
       }
       throw new Error('bad-credentials');
+    } else if (err.statusCode === 422) {
+      if (
+        err.body &&
+        err.body.errors &&
+        err.body.errors.find((e: any) => e.code === 'invalid')
+      ) {
+        throw new Error('repository-changed');
+      }
+      throw new Error('platform-failure');
     }
     throw err;
   }