fix: Docker scanner

This commit is contained in:
Andras Bacsai 2022-02-24 08:50:47 +01:00
parent fd95936219
commit c9c003dc9b

View File

@ -86,7 +86,7 @@
if (pnpmLock) packageManager = 'pnpm';
if (dockerfile) {
foundConfig.buildPack = 'docker';
foundConfig = findBuildPack('docker', packageManager);
} else if (packageJson) {
const path = packageJson.path;
const data = await get(
@ -130,7 +130,7 @@
if (pnpmLock) packageManager = 'pnpm';
if (dockerfile) {
foundConfig.buildPack = 'docker';
foundConfig = findBuildPack('docker', packageManager);
} else if (packageJson) {
const data = await get(`${packageJson.git_url}`, {
Authorization: `Bearer ${$gitTokens.githubToken}`,