Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
extra &&
typeof extra === 'string' &&
extra.startsWith(cauldronFileUriScheme)
) {
if (!(await cauldron.hasFile({ cauldronFilePath: extra }))) {
throw new Error(`Cannot find extra config file ${extra} in Cauldron`)
}
const extraFile = await cauldron.getFile({ cauldronFilePath: extra })
extra = parseJsonFromStringOrFile(extraFile.toString())
}
await kax
.task(
`[${curIdx}/${pipeline.length}] Running Container ${pipelineEltType} ${pipelineEltPackage.basePath}`
)
.run(
isPublisher(pipelineEltPackage)
? publishContainer({
containerPath,
containerVersion,
extra,
platform,
publisher: PackagePath.fromString(pipelineElt.name),
url: pipelineElt.url,
})
: transformContainer({
containerPath,
extra,
platform,
transformer: PackagePath.fromString(pipelineElt.name),
})
)
}