You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the `--since-commit` flag to your default branch that people merge into (ex: "main"). Set the `--branch` flag to your PR's branch name (ex: "feature-1"). Depending on the CI/CD platform you use, this value can be pulled in dynamically (ex: [CIRCLE_BRANCH in Circle CI](https://circleci.com/docs/variables/) and [TRAVIS_PULL_REQUEST_BRANCH in Travis CI](https://docs.travis-ci.com/user/environment-variables/)). If the repo is cloned and the target branch is already checked out during the CI/CD workflow, then `--branch HEAD` should be sufficient. The `--fail` flag will return an 183 error code if valid credentials are found.
277
289
278
290
```bash
279
291
trufflehog git file://. --since-commit main --branch feature-1 --only-verified --fail
280
292
```
281
293
282
-
## 12: Scan a Postman workspace
294
+
## 13: Scan a Postman workspace
283
295
284
296
Use the `--workspace-id`, `--collection-id`, `--environment` flags multiple times to scan multiple targets.
285
297
286
298
```bash
287
299
trufflehog postman --token=<postman api token> --workspace-id=<workspace id>
## 15. Scan a GitHub Repository for Cross Fork Object References and Deleted Commits
336
+
## 16. Scan a GitHub Repository for Cross Fork Object References and Deleted Commits
325
337
326
338
The following command will enumerate deleted and hidden commits on a GitHub repository and then scan them for secrets. This is an alpha release feature.
327
339
@@ -335,7 +347,7 @@ In addition to the normal TruffleHog output, the `--object-discovery` flag creat
335
347
336
348
For more information on Cross Fork Object References, please [read our blog post](https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github).
0 commit comments