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
Dustin Decker
6f1ba7de90
make message clearer
2022-02-15 18:54:47 -08:00
Dustin Decker
c45bca4b8b
only verified results
2022-02-15 18:54:47 -08:00
Bill Rich
28ed0c3b7c
Complete support for existing git scan flags ( #13 )
...
* Add `since_commit` to git scan
* Support `max_depth` option for git scan
* Use new options in github and gitlab sources
* Address review feedback
Co-authored-by: Bill Rich <bill.rich@trufflesec.com>
2022-02-15 18:54:47 -08:00
Dustin Decker
089b5c9063
improved plain output
2022-02-15 18:54:47 -08:00
Bill Rich
d5f3bd75ef
Add --json-legacy flag to make output match pre-v3.0
2022-02-15 18:54:47 -08:00
Dustin Decker
8afa57cee4
improve plain output
2022-02-15 18:54:47 -08:00
Dustin Decker
87357959b7
Improve plain output
2022-02-15 18:54:47 -08:00
Dustin Decker
03ead2f7ed
Integrate GitHub source
2022-02-15 18:54:47 -08:00
Dustin Decker
533f6d1e20
updates
2022-02-15 18:54:43 -08:00
Dustin Decker
d6ffadb1ee
Initial docs and release automation ( #5 )
2022-01-18 16:59:18 -08:00
Bill Rich
a70937bfe6
Support remote git repos using https ( #9 )
...
Co-authored-by: Bill Rich <bill.rich@trufflesec.com>
2022-01-14 16:07:45 -08:00
Bill Rich
1422cc303a
Include and exclude paths args for gitscan ( #6 )
...
* include and exclude paths gitscan args
Add support for include_paths and exclude_paths arguments when scanning
git sources.
* Improve variable name
Co-authored-by: Bill Rich <hrich@Bills-MacBook-Pro.local>
2022-01-14 12:40:50 -08:00
Dustin Decker
4218c39d99
Initial CLI w/ partially implemented Git source and demo detector ( #1 )
2022-01-13 12:02:24 -08:00