-
-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #1836 from domwhewell-sage/folder_crawling"
- Loading branch information
1 parent
a2310d4
commit 3382fea
Showing
3 changed files
with
6 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ class TestTrufflehog(ModuleTestBase): | |
"github_org", | ||
"speculate", | ||
"git_clone", | ||
"unstructured", | ||
"github_workflows", | ||
"dockerhub", | ||
"docker_pull", | ||
|
@@ -1134,7 +1135,7 @@ def check(self, module_test, events): | |
and "Raw result: [https://admin:[email protected]]" in e.data["description"] | ||
and "RawV2 result: [https://admin:[email protected]/basic_auth]" in e.data["description"] | ||
] | ||
# Trufflehog should find 4 verifiable secrets, 1 from the github, 1 from the workflow log, 1 from the docker image and 1 from the postman. | ||
# Trufflehog should find 4 verifiable secrets, 1 from the github, 1 from the workflow log, 1 from the docker image and 1 from the postman. Unstructured will extract the text file but trufflehog should reject it as its already scanned the containing folder | ||
assert 4 == len(vuln_events), "Failed to find secret in events" | ||
github_repo_event = [e for e in vuln_events if "test_keys" in e.data["description"]][0].parent | ||
folder = Path(github_repo_event.data["path"]) | ||
|
@@ -1196,7 +1197,7 @@ def check(self, module_test, events): | |
and "Potential Secret Found." in e.data["description"] | ||
and "Raw result: [https://admin:[email protected]]" in e.data["description"] | ||
] | ||
# Trufflehog should find 4 unverifiable secrets, 1 from the github, 1 from the workflow log, 1 from the docker image and 1 from the postman. | ||
# Trufflehog should find 4 unverifiable secrets, 1 from the github, 1 from the workflow log, 1 from the docker image and 1 from the postman. Unstructured will extract the text file but trufflehog should reject it as its already scanned the containing folder | ||
assert 4 == len(finding_events), "Failed to find secret in events" | ||
github_repo_event = [e for e in finding_events if "test_keys" in e.data["description"]][0].parent | ||
folder = Path(github_repo_event.data["path"]) | ||
|