This commit is contained in:
2026-04-07 14:50:23 +09:00
commit b4e485502b
4778 changed files with 2017091 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { GitTarget, ContainerTarget } from './types';
import { DepTree } from '../types';
import { ScannedProject } from '@snyk/cli-interface/legacy/common';
interface Options {
'remote-repo-url'?: string;
docker?: boolean;
isDocker?: boolean;
}
export declare function getInfo(scannedProject: ScannedProject, options: Options, packageInfo?: DepTree): Promise<GitTarget | ContainerTarget | null>;
export {};

View File

@@ -0,0 +1,8 @@
import { DepTree } from '../../types';
import { ContainerTarget } from '../types';
import { ScannedProject } from '@snyk/cli-interface/legacy/common';
export declare function getInfo({ isFromContainer, scannedProject, packageInfo, }: {
isFromContainer: boolean;
scannedProject: ScannedProject;
packageInfo?: DepTree;
}): Promise<ContainerTarget | null>;

View File

@@ -0,0 +1,5 @@
import { GitTarget } from '../types';
export declare function getInfo({ isFromContainer, cwd, }: {
isFromContainer: boolean;
cwd?: string;
}): Promise<GitTarget | null>;

View File

@@ -0,0 +1,8 @@
export interface GitTarget {
remoteUrl?: string;
branch?: string;
}
export interface ContainerTarget {
image?: string;
}
export declare function isGitTarget(target: any): target is GitTarget;