From 30072239d17a2d742ee3054946cceef791a3d02e Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sun, 16 May 2021 11:54:03 +0200 Subject: [PATCH] fix(git): gracefully handle workflows 403 --- lib/util/git/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 0f55698aeb..bb74bb58b2 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -790,7 +790,8 @@ export async function commitFiles({ return null; } if ( - err.message.includes('remote rejected') && + (err.message.includes('remote rejected') || + err.message.includes('403')) && files?.some((file) => file.name?.startsWith('.github/workflows/')) ) { logger.debug({ err }, 'commitFiles error'); -- GitLab