-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
28 lines (25 loc) · 755 Bytes
/
types.ts
File metadata and controls
28 lines (25 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* @file Shared types for TruffleHog resolution. TruffleHog is a single-binary
* secrets scanner from TruffleSecurity. socket-basics uses it for the SAST
* secrets-scan workflow; other Socket tooling can reach for it via
* `resolveTrufflehog()`.
*/
import type { ResolvedToolIntegrity } from '../from-download'
export type TrufflehogSource = 'download' | 'path' | 'vfs'
/**
* A resolved TruffleHog installation.
*/
export interface ResolvedTrufflehog {
/**
* Absolute path to the `trufflehog` executable.
*/
readonly path: string
/**
* Which resolver tier found this.
*/
readonly source: TrufflehogSource
/**
* See {@link ResolvedToolIntegrity}.
*/
readonly integrity?: ResolvedToolIntegrity | undefined
}