fix: Docker scanner
This commit is contained in:
parent
fd95936219
commit
c9c003dc9b
@ -86,7 +86,7 @@
|
|||||||
if (pnpmLock) packageManager = 'pnpm';
|
if (pnpmLock) packageManager = 'pnpm';
|
||||||
|
|
||||||
if (dockerfile) {
|
if (dockerfile) {
|
||||||
foundConfig.buildPack = 'docker';
|
foundConfig = findBuildPack('docker', packageManager);
|
||||||
} else if (packageJson) {
|
} else if (packageJson) {
|
||||||
const path = packageJson.path;
|
const path = packageJson.path;
|
||||||
const data = await get(
|
const data = await get(
|
||||||
@ -130,7 +130,7 @@
|
|||||||
if (pnpmLock) packageManager = 'pnpm';
|
if (pnpmLock) packageManager = 'pnpm';
|
||||||
|
|
||||||
if (dockerfile) {
|
if (dockerfile) {
|
||||||
foundConfig.buildPack = 'docker';
|
foundConfig = findBuildPack('docker', packageManager);
|
||||||
} else if (packageJson) {
|
} else if (packageJson) {
|
||||||
const data = await get(`${packageJson.git_url}`, {
|
const data = await get(`${packageJson.git_url}`, {
|
||||||
Authorization: `Bearer ${$gitTokens.githubToken}`,
|
Authorization: `Bearer ${$gitTokens.githubToken}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user