Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
make postman source public (#2635)
Zachary Rice20dd450e0b6d
diff --git a/README.md b/README.mdindex 863029d83..2f6ed052f 100644--- a/README.md+++ b/README.md@@ -211,6 +211,14 @@ Set the `--since-commit` flag to your default branch that people merge into (ex:trufflehog git file://. --since-commit main --branch feature-1 --only-verified --fail```+## 12: Scan a Postman workspace++Use the `--workspace`, `--collection`, `--environment` flags multiple times to scan multiple targets.++```bash+trufflehog postman --token=<postman api token> --workspace=<workspace id>+```+# :question: FAQ- All I see is `π·ππ· TruffleHog. Unearth your secrets. π·ππ·` and the program exits, what gives?diff --git a/main.go b/main.goindex 1d451f078..d30a764a9 100644--- a/main.go+++ b/main.go@@ -155,7 +155,7 @@ var (travisCiScanToken = travisCiScan.Flag("token", "TravisCI token. Can also be provided with environment variable").Envar("TRAVISCI_TOKEN").Required().String()// Postman is hidden for now until we get more feedback from the community.- postmanScan = cli.Command("postman", "Scan Postman").Hidden()+ postmanScan = cli.Command("postman", "Scan Postman")postmanToken = postmanScan.Flag("token", "Postman token. Can also be provided with environment variable").Envar("POSTMAN_TOKEN").String()postmanWorkspaces = postmanScan.Flag("workspace", "Postman workspace to scan. You can repeat this flag.").Strings()postmanCollections = postmanScan.Flag("collection", "Postman collection to scan. You can repeat this flag.").Strings()