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.
289
289
290
290
```bash
291
-
trufflehog git file://. --since-commit main --branch feature-1 --only-verified --fail
291
+
trufflehog git file://. --since-commit main --branch feature-1 --results=verified,unknown --fail
292
292
```
293
293
294
294
## 13: Scan a Postman workspace
@@ -429,7 +429,7 @@ Flags:
429
429
--github-actions Output in GitHub Actions format.
430
430
--concurrency=20 Number of concurrent workers.
431
431
--no-verification Don't verify the results.
432
-
--only-verifiedOnly output verified results.
432
+
--results=RESULTS Specifies which type(s) of results to output: verified, unknown, unverified, filtered_unverified. Defaults to all types.
433
433
--allow-verification-overlap
434
434
Allow verification of similar credentials across detectors
435
435
--filter-unverified Only output first unverified result per chunk per detector if there are more than one results.
@@ -526,7 +526,7 @@ jobs:
526
526
- name: Secret Scanning
527
527
uses: trufflesecurity/trufflehog@main
528
528
with:
529
-
extra_args: --only-verified
529
+
extra_args: --results=verified,unknown
530
530
```
531
531
532
532
In the example config above, we're scanning for live secrets in all PRs and Pushes to `main`. Only code changes in the referenced commits are scanned. If you'd like to scan an entire branch, please see the "Advanced Usage" section below.
@@ -553,7 +553,7 @@ If you're incorporating TruffleHog into a standalone workflow and aren't running
If you'd like to specify specific `base` and `head` refs, you can use the `base` argument (`--since-commit` flag in TruffleHog CLI) and the `head` argument (`--branch` flag in the TruffleHog CLI). We only recommend using these arguments for very specific use cases, where the default behavior does not work.
@@ -591,7 +591,7 @@ If you'd like to specify specific `base` and `head` refs, you can use the `base`
591
591
with:
592
592
base: ""
593
593
head: ${{ github.ref_name }}
594
-
extra_args: --only-verified
594
+
extra_args: --results=verified,unknown
595
595
```
596
596
597
597
## TruffleHog GitLab CI
@@ -612,7 +612,7 @@ security-secrets:
612
612
- apk add --no-cache git curl jq
613
613
- curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
results=cli.Flag("results", "Specifies which type(s) of results to output: verified, unknown, unverified, filtered_unverified. Defaults to all types.").String()
58
58
59
59
allowVerificationOverlap=cli.Flag("allow-verification-overlap", "Allow verification of similar credentials across detectors").Bool()
60
60
filterUnverified=cli.Flag("filter-unverified", "Only output first unverified result per chunk per detector if there are more than one results.").Bool()
0 commit comments