fix(github-actions): defensive non-null check

This commit is contained in:
Rhys Arkins 2023-01-17 07:35:00 +01:00
parent 5dc806bb8b
commit 142bebc1eb

View file

@ -105,7 +105,7 @@ function extractWithYAMLParser(
} }
for (const job of Object.values(pkg?.jobs ?? {})) { for (const job of Object.values(pkg?.jobs ?? {})) {
const dep = extractContainer(job.container); const dep = extractContainer(job?.container);
if (dep) { if (dep) {
dep.depType = 'container'; dep.depType = 'container';
deps.push(dep); deps.push(dep);