From 83610e0166cecf1bcc777841462ac8a1b70dab0c Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 10 Aug 2022 09:22:35 +0200 Subject: [PATCH] fix(github-actions): pkg can be null (#17094) --- lib/modules/manager/github-actions/extract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/manager/github-actions/extract.ts b/lib/modules/manager/github-actions/extract.ts index 874e8b4aed..0651a88968 100644 --- a/lib/modules/manager/github-actions/extract.ts +++ b/lib/modules/manager/github-actions/extract.ts @@ -100,7 +100,7 @@ function extractWithYAMLParser( return []; } - for (const job of Object.values(pkg.jobs ?? {})) { + for (const job of Object.values(pkg?.jobs ?? {})) { if (job.container !== undefined) { const dep = extractContainer(job.container); dep.depType = 'container'; -- GitLab