Skip to content

Commit

Permalink
Anchore Grype Mapper (#6117)
Browse files Browse the repository at this point in the history
* initial commit

* changes

* Finalized trufflehog mapper

* Update libs/hdf-converters/test/mappers/forward/trufflehog_mapper.spec.ts

Co-authored-by: Charles Hu <[email protected]>

* Update libs/hdf-converters/test/mappers/forward/trufflehog_mapper.spec.ts

Co-authored-by: Charles Hu <[email protected]>

* removed unused import

* initial commit

* pushing changes

* more changes made

* fingerprinting changes

* finalizing changes

* lint and small changes

* error check

* final changes

* changed perms

* rm unneeded files

* removed trufflehog files

* removed file

* added ignored matches

* fixed tests

* lint

---------

Co-authored-by: Charles Hu <[email protected]>
Co-authored-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 7ffefcb commit af7fdab
Show file tree
Hide file tree
Showing 14 changed files with 560,140 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/frontend/src/store/report_intake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Store from '@/store/store';
import {Tag} from '@/types/models';
import {readFileAsync} from '@/utilities/async_util';
import {
AnchoreGrypeMapper,
ASFFResults as ASFFResultsMapper,
BurpSuiteMapper,
ChecklistResults,
Expand Down Expand Up @@ -280,6 +281,8 @@ export class InspecIntake extends VuexModule {
return new CycloneDXSBOMResults(convertOptions.data).toHdf();
case INPUT_TYPES.TRUFFLEHOG:
return new TrufflehogResults(convertOptions.data).toHdf();
case INPUT_TYPES.GRYPE:
return new AnchoreGrypeMapper(convertOptions.data).toHdf();
default:
return SnackbarModule.failure(
`Invalid file uploaded (${filename}), no fingerprints matched.`
Expand Down
1 change: 1 addition & 0 deletions libs/hdf-converters/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {ASFFResults} from './src/asff-mapper/asff-mapper';
export * from './src/anchore-grype-mapper';
export * from './src/aws-config-mapper';
export * from './src/burpsuite-mapper';
export * from './src/ckl-mapper/checklist-mapper';
Expand Down

Large diffs are not rendered by default.

2,613 changes: 2,613 additions & 0 deletions libs/hdf-converters/sample_jsons/anchore_grype_mapper/amazon-grype-withraw.json

Large diffs are not rendered by default.

3,659 changes: 3,659 additions & 0 deletions libs/hdf-converters/sample_jsons/anchore_grype_mapper/anchore-grype-hdf.json

Large diffs are not rendered by default.

17,382 changes: 17,382 additions & 0 deletions libs/hdf-converters/sample_jsons/anchore_grype_mapper/anchore-grype-withraw.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit af7fdab

Please sign in to comment.