Skip to content

Commit

Permalink
test: updated trufflehog json test format
Browse files Browse the repository at this point in the history
  • Loading branch information
janniclas committed Nov 25, 2024
1 parent f67ae50 commit e203372
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion adapter/src/test/resources/trufflehog-no-result.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
"StructuredData": null
}
]
}
}
44 changes: 22 additions & 22 deletions adapter/src/test/resources/trufflehog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
"results": [
{
"level": "info-0",
"ts": "2024-11-19T13:14:04Z",
"ts": "2024-11-22T13:15:03Z",
"logger": "trufflehog",
"msg": "running source",
"source_manager_worker_id": "JrTPL",
"source_manager_worker_id": "LTtXx",
"with_units": true
},
{
"level": "info-0",
"ts": "2024-11-19T13:14:04Z",
"ts": "2024-11-22T13:15:03Z",
"logger": "trufflehog",
"msg": "scanning repo",
"source_manager_worker_id": "JrTPL",
"source_manager_worker_id": "LTtXx",
"unit_kind": "dir",
"unit": "/tmp/",
"repo": "https://github.com/fraunhofer-iem/spha-demo",
"head": "2f6d0a9ccb3211eff95126a7e36c68063c2432ce"
"head": "0e9b0b3e2d4587b7c5cba541f746e947d51d9842"
},
{
"SourceMetadata": {
"Data": {
"Git": {
"commit": "4a88901aaf9889a0672013bd4edfe8a99e290ab6",
"file": "src/main/java/com/example/demo/VulnerableJavaAppApplication.java",
"email": "Jan-Niclas Struewer \u003cj[email protected]\u003e",
"email": "Jan-Niclas Struewer <j[email protected]>",
"repository": "https://github.com/fraunhofer-iem/spha-demo",
"timestamp": "2024-11-19 11:54:10 +0000",
"line": 9
Expand All @@ -41,33 +41,21 @@
"DecoderName": "PLAIN",
"Verified": false,
"VerificationError": "context deadline exceeded",
"Raw": "***agenda-live.mongo.cosmos.azure.com:10255/?appName=%40agenda-live\u0026maxIdleTimeMS=120000\u0026replicaSet=globaldb\u0026retryWrites=false\u0026ssl=true",
"Raw": "***agenda-live.mongo.cosmos.azure.com:10255/?appName=%40agenda-live&maxIdleTimeMS=120000&replicaSet=globaldb&retryWrites=false&ssl=true",
"RawV2": "",
"Redacted": "",
"ExtraData": {
"rotation_guide": "https://howtorotate.com/docs/tutorials/mongo/"
},
"StructuredData": null
},
{
"level": "info-0",
"ts": "2024-11-19T13:14:06Z",
"logger": "trufflehog",
"msg": "finished scanning",
"chunks": 63,
"bytes": 31905,
"verified_secrets": 1,
"unverified_secrets": 2,
"scan_duration": "2.020861236s",
"trufflehog_version": "3.83.7"
},
{
"SourceMetadata": {
"Data": {
"Git": {
"commit": "4a88901aaf9889a0672013bd4edfe8a99e290ab6",
"file": "src/main/resources/application.properties",
"email": "Jan-Niclas Struewer \u003cj[email protected]\u003e",
"email": "Jan-Niclas Struewer <j[email protected]>",
"repository": "https://github.com/fraunhofer-iem/spha-demo",
"timestamp": "2024-11-19 11:54:10 +0000",
"line": 1
Expand All @@ -83,13 +71,25 @@
"DecoderName": "PLAIN",
"Verified": false,
"VerificationError": "context deadline exceeded",
"Raw": "***agenda-live.mongo.cosmos.azure.com:10255/?appName=%40agenda-live\u0026maxIdleTimeMS=120000\u0026replicaSet=globaldb\u0026retryWrites=false\u0026ssl=true",
"Raw": "***agenda-live.mongo.cosmos.azure.com:10255/?appName=%40agenda-live&maxIdleTimeMS=120000&replicaSet=globaldb&retryWrites=false&ssl=true",
"RawV2": "",
"Redacted": "",
"ExtraData": {
"rotation_guide": "https://howtorotate.com/docs/tutorials/mongo/"
},
"StructuredData": null
},
{
"level": "info-0",
"ts": "2024-11-22T13:15:08Z",
"logger": "trufflehog",
"msg": "finished scanning",
"chunks": 77,
"bytes": 35194,
"verified_secrets": 1,
"unverified_secrets": 2,
"scan_duration": "5.024563541s",
"trufflehog_version": "3.84.0"
}
]
}
}

0 comments on commit e203372

Please sign in to comment.