Adam Kobi
77b6d90a16
Merge branch 'master' into add_support_for_branch
2019-01-13 13:58:07 +02:00
zach rice
8de38be418
bump version
2019-01-06 17:48:08 -06:00
Zachary Rice
ec1ebd4686
Merge pull request #171 from milo-minderbinder/bugfix/report-memory
...
fix memory issue when writing json report (#168 )
2019-01-06 08:58:43 -06:00
zach rice
81ddfbed88
dupe code
2019-01-06 08:52:31 -06:00
zach rice
38a36add57
typo
2019-01-05 20:51:59 -06:00
zach rice
9e39927ac6
turning down logging, adding test
2019-01-05 20:50:17 -06:00
Milo Minderbinder
0ba9dda0f0
fix memory issue when writing json report ( #168 )
...
Previously, gitleaks.writeReport used json.MarshallIndent on the entire
set of leaks when writing json reports, which would cause failures due
to excessive memory consumption when a large number of leaks were
identified.
This PR addresses the problem by doing incremental marshalling and
writing of leaks to the report file, and reduces the memory footprint by
several GB in tests with >30k leaks.
2019-01-04 18:49:25 -05:00
zach rice
a24f9a2c92
working on getting pinned config working
2019-01-04 16:31:33 -06:00
Pepe Bawagan
1e3bf42464
Fix typo in recovery message
2019-01-04 15:23:26 +08:00
Milo Minderbinder
6fa52ae7cc
Merge remote-tracking branch 'upstream/master' into bugfix/whitelist-checks
2018-12-31 16:54:53 -05:00
Milo Minderbinder
bb9c459a1a
check whiteListFiles for root commit & GitHub PRs
...
add missing checks against `whiteListFiles` regexes for files in the
root/initial commit and in GitHub PRs (in `auditGithubPR` function)
2018-12-31 12:49:49 -05:00
Adam Kobi
432c76a9d9
added support for scanning only single remote branch
2018-12-29 13:10:39 +02:00
Milo Minderbinder
64c8d618a2
fix file ( #162 ) & line ( #161 ) whitelist checks
...
* only check entropyRegexes and whiteListRegexes once per line, and only
if regex or entropy leak type was found, since regex checks are expensive
* check whiteListFiles once for each FilePatch, instead of for
every Chunk
2018-12-13 13:14:54 -05:00
Cristhian Amaya
92bb4ea6fc
Write report only when leaks are found
2018-12-11 18:33:11 +01:00
zach rice
98b025da72
bumping versions
2018-12-10 09:48:48 -06:00
Cristhian Amaya
68c2a18f6f
Update entropy noise reduction
...
Instead of reducing noise by default, there's a new flag called
`--noise-reduction` to enable that.
2018-12-10 16:24:53 +01:00
Cristhian Amaya
ea49078ffd
Reduce noise when running entropy checks
...
When there's a word on a line with high entropy, we check if the line
matches any of the regex configured on the `lineregexes` element of the
`entropy` section. If so, it's marked as a leaked.
This has reduced the number of leaks found with entropy enabled up to
80%
2018-12-04 10:23:42 +01:00
Cristhian Amaya
949029ca89
Change redacted behaviour on the line information
...
The line information sometimes contains useful context information so
instead of redacting the whole line, this change redacts only the
secret
2018-11-30 14:13:18 +01:00
zricethezav
db08fc0564
actually bump version in code >.<
2018-11-18 08:43:05 -06:00
Zachary Rice
cb6b01cc5d
Merge pull request #149 from camaya/fix-files-whitelist-github-prs
...
Fix files whitelisting when checking Github PRs
2018-11-18 08:36:47 -06:00
Cristhian Amaya
169a137e7f
Fix files whitelisting when checking Github PRs
...
Files whitelisting code was not executed when running the tool against a
Github PR so the config was ignored.
To avoid duplication, the whitelist files check has been moved to the `inspect`
function which is always executed.
2018-11-13 11:54:25 +01:00
zricethezav
793bbc793f
bumping version, format, changelog, uhhhhhh, test... a single test
2018-11-12 21:42:45 -06:00
Zachary Rice
4aa7be2dbf
Merge pull request #120 from denwwer/115-gitlab
...
115 gitlab
2018-11-12 21:30:06 -06:00
zach rice
54949bd62a
fixing commit count
2018-11-07 19:33:39 -06:00
zach rice
de0a70a835
changelog
2018-11-06 22:27:52 -06:00
zach rice
9f8feca926
gotta check the root
2018-11-06 22:20:42 -06:00
boris
79a8983bac
support GitLab
2018-11-06 15:10:09 +02:00
Cristhian Amaya
7d5ed837a4
Remove break lines in commit messages
...
Breaklines in a csv report caused issues when importing the data to an
spreadsheet application like LibreOffice Calc or Microsoft Excel.
2018-11-06 11:41:38 +01:00
zach rice
8153da6e9c
readding default whitelist
2018-11-05 18:13:50 -06:00
zach rice
40240cb5ee
removing branch from report
2018-11-03 11:31:18 -05:00
zach rice
9103834503
tests, readme, bumping version
2018-11-03 11:11:50 -05:00
zach rice
7e3c740592
audit all branches by default, memoize commits, smarter regexes
2018-11-02 21:58:09 -05:00
Cristhian Amaya
23b5ce3264
Add commit date to leaks
2018-10-28 17:13:59 +01:00
zach rice
03c53d2978
version again, pushing to master because thats what we do here
2018-10-27 19:30:58 -05:00
zach rice
77dec1461b
better language
2018-10-27 19:19:07 -05:00
Les Aker
afb598cf15
update defaultConfig with new Slack regex
2018-10-27 14:29:25 -04:00
zach rice
c358ae9310
changelog
2018-10-26 13:53:16 -05:00
zach rice
9554258d02
adding some more defaults
2018-10-26 13:48:14 -05:00
zach rice
ea42ed406f
fixing default ssh logic
2018-10-25 12:27:50 -05:00
zach rice
94389137e8
removing private opts
2018-10-24 16:00:15 -05:00
zach rice
98e6ba9378
better ssh handling
2018-10-24 15:49:53 -05:00
zach rice
98aeee9b1d
fixing everything
2018-10-24 12:28:54 -05:00
zach rice
64e7afea98
updating version
2018-10-24 09:58:39 -05:00
zach rice
16765c19cf
adding go routines does not help performance much.... posting benchmarks soon
2018-10-24 09:38:36 -05:00
zach rice
21b59fab5d
whitelist repo update
2018-10-23 16:34:36 -05:00
zach rice
0a51dabb17
entropy ranges
2018-10-22 18:51:01 -05:00
zach rice
88cc9bb363
committing to master nbd.... stupid version
2018-10-20 17:28:42 -05:00
zach rice
23489f3f18
updating changelog, readme, some other things
2018-10-20 17:16:35 -05:00
zach rice
a998ddc9d4
adding github.go, pagination working
2018-10-20 16:31:52 -05:00
zach rice
833963c1c1
refactoring
2018-10-19 19:53:10 -05:00