-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1459 from snyk/feat/container-static-scanning
Feat/container static scanning
- Loading branch information
Showing
27 changed files
with
2,023 additions
and
1,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Options } from '../types'; | ||
import { Ecosystem } from './types'; | ||
|
||
export { testEcosystem } from './test'; | ||
export { monitorEcosystem } from './monitor'; | ||
export { getPlugin } from './plugins'; | ||
|
||
/** | ||
* Ecosystems are listed here if you opt in to the new plugin test flow. | ||
* This is a breaking change to the old plugin formats, so only a select few | ||
* plugins currently work with it. | ||
* | ||
* Currently container scanning is not yet ready to work with this flow, | ||
* hence this is in a separate function from getEcosystem(). | ||
*/ | ||
export function getEcosystemForTest(options: Options): Ecosystem | null { | ||
if (options.source) { | ||
return 'cpp'; | ||
} | ||
return null; | ||
} | ||
|
||
export function getEcosystem(options: Options): Ecosystem | null { | ||
if (options.source) { | ||
return 'cpp'; | ||
} | ||
|
||
if (options.docker) { | ||
return 'docker'; | ||
} | ||
return null; | ||
} |
Oops, something went wrong.