diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts
index 743f65bf28f2c7f79ef0fc7fe1cdfd93a845ee82..db2df6a0cf9ebd529b5d9dd86255b7b2c062bacc 100644
--- a/lib/platform/github/index.ts
+++ b/lib/platform/github/index.ts
@@ -1617,7 +1617,7 @@ export async function updatePr(prNo: number, title: string, rawBody?: string) {
 export async function mergePr(prNo: number, branchName: string) {
   logger.debug(`mergePr(${prNo}, ${branchName})`);
   // istanbul ignore if
-  if (config.pushProtection) {
+  if (config.isGhe && config.pushProtection) {
     logger.info(
       { branch: branchName, prNo },
       'Branch protection: Cannot automerge PR when push protection is enabled'