Skip to content

Find, verify, and analyze leaked credentials

make postman source public (#2635)

Zachary Rice20dd450e0b6d
diff --git a/README.md b/README.md
index 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.go
index 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()