Bill Rich
7dd2b74f1f
Make archive handler configurable ( #1077 )
...
* Make archive handler configurable.
* Use common.IsDone()
2023-02-07 15:25:14 -08:00
Alexandr Marchenko
b29b78c10d
filesystem support for exclude and include filters (2nd attemp) ( #1033 )
...
* fix filter issue - empty lines should be ignored
* filesystem support for filter exclude
Co-authored-by: Dustin Decker <dustin@trufflesec.com>
2023-01-26 09:33:45 -08:00
Dustin Decker
5f6143f09a
Add Circle CI source ( #997 )
...
* Add Circle CI source
* remove SHA1 line
* remove trim
2023-01-05 21:44:37 -08:00
Yassine Ilmi
330a6f7cdc
Removing Debug version Println to logrus debug ( #993 )
2023-01-03 10:36:27 -06:00
Miccah
8859771a2a
Remove custom log leveler ( #985 )
...
Instead of manually using a log leveler, rely on the global one defined
in the `log` package.
2022-12-20 19:03:53 -06:00
Miccah
f5b83ee2a5
Add configuration parsing and custom detectors to engine ( #968 )
...
* Add configuration parsing for custom detectors
* Error on empty filename
2022-12-20 10:14:49 -06:00
ahrav
936a139596
Allow using a glob for include list. ( #977 )
...
* Allow using a glob for include list.
* Update command flag.
* Make comment more clear.
* update comment.
* Allow scanning repo and org at the same time.
2022-12-16 13:28:16 -08:00
Bill Rich
36ca2601e0
Add s3 object count to trace logs ( #975 )
...
* Add s3 object count to trace logs
* fix debug level
2022-12-13 16:46:09 -08:00
Bill Rich
3b055ce3f9
Add logger to context ( #947 )
...
* Add logger to context
* Fatal on no org
2022-11-30 11:10:05 -08:00
Jessica
3d501975e4
Add filter as scan option to gitlab module's git scan ( #919 )
2022-11-15 13:02:37 -08:00
ahrav
dd141fb55f
[oc-147] - Add context to all git methods ( #901 )
...
* Add context to all git methods.
* remove logrus.
* Add ctx.
* Address comments.
* Add error to clone failing.
* Return error.
2022-11-03 16:36:52 -07:00
ahrav
fe029b1098
[THOG-793] - Return all unverified results ( #856 )
...
* Remove the check to filter and return only a single unverified result.
* Revert "Remove the check to filter and return only a single unverified result."
This reverts commit 494e432803
.
* Add new CLI flag to filter unverified results.
2022-10-31 09:36:10 -07:00
Bill Rich
034ca4fb5b
Add bytes counter to scans ( #876 )
2022-10-27 12:54:22 -07:00
Dustin Decker
fa9479100e
Add common sentry recover library and add into goroutines ( #738 )
...
* Add common sentry recover library and add into goroutines
* fix nits
2022-08-29 11:45:37 -07:00
Felipe Nakandakari
c8ac7c392e
Allow secrets to be passed as env vars ( #736 )
2022-08-26 09:37:16 -07:00
Bill Rich
0d8a154330
Add ssh:/ URI to docs ( #732 )
2022-08-23 23:26:09 -07:00
Bill Rich
5ad3bbde37
Use pointer to config ( #715 )
2022-08-16 09:15:25 -07:00
ahrav
73f9d3f0a0
[chore] - Use config struct instead of pointer for engine scans. ( #709 )
...
* Use a config struct instead of pointer when scanning engine sources.
* use config.
2022-08-12 09:56:24 -07:00
ahrav
dcc102a81c
[Thog-371] Utilize config struct for engine scans ( #700 )
...
* Use a config struct when scanning and engine source.
* fix tests.
* Move test_helpers to the sources pkg.
* Handle ScanGit error in tests.
* adderss comments.
* Use functional options.
* Remove temp var.
* Add better var names for the setup functions for each config.
* Remove unused var.
* fix error logs.
* fix error logs.
* single line.
* remove blank lines.
2022-08-10 10:11:13 -07:00
Miccah
fc18a5ae0c
Bug fix and add authentication in shallow clone ( #595 )
2022-05-31 20:45:28 -05:00
Miccah
6fa2171a22
Refactor Engine to wait for workers in a Finish method ( #581 )
...
* Refactor Engine to wait for workers in a Finish method
This should allow the engine to run multiple concurrent scans if
desired before shutting down.
Additionally, this commit refactors some of the printing logic to the
output package.
* Fix tests
2022-05-25 11:35:44 -05:00
Miccah
67ad2f2247
Shallow clone if --since-commit is provided ( #564 )
...
* Shallow clone if --since-commit is provided
* Set the user before constructing args
* Fix vbout detector
* Address PR comments
* Use a better name for timestamp
* Use net.URL.String method for the remote path
2022-05-24 10:49:03 -05:00
ahrav
928b3b4d28
[THOG-336] Use the string version of the Detector Type. ( #538 )
...
* Use the string version of the Detector Type.
* Only modify the output for json.
* reorder import.
* Fix imports.
* Add DetectorName in addition to DetectorType to the json output.
2022-05-13 09:02:33 -07:00
Bill Rich
c78120e56f
Syslog source ( #500 )
...
* Add syslog source
* only load cert/key with tls
* Cleanup
* Linting
Co-authored-by: Bill Rich <bill.rich@trufflesec.com>
2022-05-04 15:08:11 -07:00
ahrav
ac6fc02f36
Fix crash when scanning with json-legacy flag on a github repo. ( #491 )
2022-04-29 17:28:04 -07:00
Bill Rich
1540ab9df0
Log explanation of non-zero exit with found results ( #431 )
...
* Log explanation of non-zero exit with found results
* Change exit code and add documentation
* Adjust exit code handling
* Make action fail on found results
* Use new overseer
* Improve wording
* Update README.md
2022-04-21 10:08:51 -07:00
Bill Rich
af979d4620
Use .Line to reduce diff strangeness ( #380 )
2022-04-11 16:38:08 -07:00
Miccah
987bd71989
Remove versionFlag in favor of setting the version flag with kingpin ( #366 )
...
This allows calling `trufflehog --version` without kingpin failing to
parse the arguments.
2022-04-11 09:47:03 -07:00
Dustin Decker
e8b55ad826
Don't attempt checking for updates on dev builds ( #317 )
2022-04-07 23:55:01 -07:00
Dustin Decker
50547961f4
fix cli parsing
2022-04-04 00:04:24 -07:00
Dustin Decker
8d2dd624e4
fetcher controls fetch interval, prevent fetching loop
2022-04-03 21:13:39 -07:00
Dustin Decker
d41d18af3a
fix cli parsing and improve github user scanning error handling
2022-04-03 13:42:23 -07:00
Bill Rich
a8f07c8e97
Automatically update trufflehog ( #121 )
...
Co-authored-by: Dustin Decker <dustin@trufflesec.com>
2022-04-03 11:51:56 -07:00
Miccah
78b344d7b8
Add --include-members flag to scan all members of an organization ( #118 )
...
* Add --member-repos flag to scan all members of an organization
* Move flag to the githubScan sub-command
Co-authored-by: Miccah Castorina <miccah.castorina@trufflesec.com>
2022-04-01 18:22:37 -07:00
Bill Rich
c2b4f0bc39
Include line numbers in git metadata ( #97 )
...
* Include line numbers in git metadata
* Update tests for fragments and line numbers
2022-03-22 09:27:15 -07:00
Dustin Decker
72c13c4b8f
Update detector process and readme ( #79 )
2022-03-14 17:27:14 -07:00
Bill Rich
6486c18565
Add s3 support to CLI ( #76 )
...
* Add s3 support to CLI
* Clean up comments
Co-authored-by: Dustin Decker <dustin@trufflesec.com>
2022-03-14 17:07:07 -07:00
Bill Rich
2cb5b27d3b
Add GitLab support to CLI ( #78 )
...
* Add GitLab support to CLI
* Update cli message
Co-authored-by: Dustin Decker <dustin@trufflesec.com>
2022-03-14 17:05:15 -07:00
Bill Rich
8d1db04c36
Add filesystem scan to CLI ( #77 )
...
* Add filesystem scan to CLI
* Fix linter errors
* Update message
Co-authored-by: Dustin Decker <dustin@trufflesec.com>
2022-03-14 17:04:19 -07:00
Dustin Decker
8d754a88d4
update dependency
2022-03-09 15:49:57 -08:00
Dustin Decker
c80bd5e905
Fix linting and dogfood in CI
2022-03-04 08:39:23 -08:00
Bill Rich
9f378b8cb3
Resolve a ref as arg for --since_commit ( #57 )
2022-03-04 08:39:23 -08:00
Bill Rich
c144630c54
Add parent results to ignore list ( #47 )
...
* Add parent results to ignore list
* Force concurrency to 1 when base commit is set
2022-03-04 08:39:22 -08:00
Dustin Decker
736fa201f2
fix logging
2022-03-04 08:39:22 -08:00
Dustin Decker
c20e9f4732
improvements
2022-03-04 08:39:17 -08:00
Dustin Decker
77418fb3f8
module v3
2022-02-15 18:54:47 -08:00
Dustin Decker
0427a995d3
print banner to stderr
2022-02-15 18:54:47 -08:00
Dustin Decker
ee99f0c9a2
Record avg detector time
2022-02-15 18:54:47 -08:00
Dustin Decker
152ef6d4e1
add include forks option ( #37 )
2022-02-15 18:54:47 -08:00
Dustin Decker
c131a6e4ae
add debug pprof server and metrics server
2022-02-15 18:54:47 -08:00