mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
parent
49bbf96983
commit
b59b3bd7df
3 changed files with 15 additions and 3 deletions
14
README.md
14
README.md
|
@ -42,6 +42,10 @@ Join the [Secret Scanning Discord](https://discord.gg/8Hzbrnkr7E)
|
|||
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=trufflesecurity
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# :floppy_disk: Installation
|
||||
|
||||
Several options available for you:
|
||||
|
@ -211,6 +215,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?
|
||||
|
@ -544,7 +556,7 @@ class Verifier(BaseHTTPRequestHandler):
|
|||
self.log_message("%s", request)
|
||||
|
||||
# check the match, you'll need to implement validateToken, which takes an array of ID's and Secrets
|
||||
if not validateTokens(request['HogTokenDetector']['hogID'], request['HogTokenDetector']['hogSecret']):
|
||||
if not validateTokens(request['HogTokenDetector']['hogID'], request['HogTokenDetector']['hogSecret']):
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
else:
|
||||
|
|
2
main.go
2
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()
|
||||
|
|
|
@ -216,7 +216,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, _ .
|
|||
return nil
|
||||
}
|
||||
|
||||
func (s *Source) scanLocalWorkspace(ctx context.Context, chunksChan chan *sources.Chunk, workspace Workspace, filePath string) {
|
||||
func (s *Source) scanLocalWorkspace(workspace Workspace, filePath string) {
|
||||
// reset keywords for each workspace
|
||||
s.resetKeywords()
|
||||
|
||||
|
|
Loading…
Reference in a new issue