Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit e4f897f

Browse files
authored
Merge pull request #74 from secureCodeBox/feature/add-context-to-findings
Add securityTest context to findings
2 parents 5357883 + 9b064c1 commit e4f897f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scb-persistenceproviders/elasticsearch-persistenceprovider/src/main/java/io/securecodebox/persistence/elasticsearch/ElasticSearchPersistenceProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public void persist(SecurityTest securityTest) throws PersistenceException{
197197
findingAsMap.put("type", indexTypeNameForFindings);
198198
findingAsMap.put("security_test_id", securityTest.getId().toString());
199199
findingAsMap.put("security_test_name", securityTest.getName());
200+
findingAsMap.put("security_test_context", securityTest.getContext());
200201
findingAsMap.put("@timestamp", new SimpleDateFormat(dateTimeFormatToPersist).format(new Date()));
201202

202203
IndexRequest findingIndexRequest = new IndexRequest(getElasticIndexName(), "_doc");

0 commit comments

Comments
 (0)