Zachary Rice
7fa9c802f5
u r not prepared
2019-01-06 18:47:43 -06:00
zach rice
8f1bc74e26
new logo
2019-01-06 18:29:02 -06: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
Zachary Rice
63814f1eaf
Merge pull request #172 from zricethezav/repo-config
...
Repo config
2019-01-05 21:35:51 -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
Zachary Rice
f57158a893
Merge pull request #170 from syk0saje/master
...
Fix typo in recovery message
2019-01-04 09:45:13 -06:00
Pepe Bawagan
1e3bf42464
Fix typo in recovery message
2019-01-04 15:23:26 +08:00
Zachary Rice
9d6a75fbab
Merge pull request #163 from milo-minderbinder/bugfix/whitelist-checks
...
fix file (#162 ) & line (#161 ) whitelist checks
2019-01-01 11:09:54 -06: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
Zachary Rice
777601a0ea
Merge pull request #165 from camaya/update-report-creation
...
Write report only when leaks are found
2018-12-27 16:16:24 -06:00
Zachary Rice
35d170018e
Merge pull request #166 from arbazkiraak/patch-1
...
Adding Stripe API Regex
2018-12-27 16:15:38 -06:00
Arbaz Hussain
af2e99ef45
Adding Strip API Regex
...
```
→ printf ' Stripe.api_key = "Sk_test_41u0zAKbiWmTVhvHcS6gAjp9"
Stripe.api_key = "sk_live_VhYCleaZwuUBGSFYFc7WUboz"
STRIPE_PUBLIC_KEY= "pk_live_8sCPFZoLtW5pXuVHGrRKrROs"' | grep -P "(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}"
Stripe.api_key = "Sk_test_41u0zAKbiWmTVhvHcS6gAjp9"
Stripe.api_key = "sk_live_VhYCleaZwuUBGSFYFc7WUboz"
STRIPE_PUBLIC_KEY= "pk_live_8sCPFZoLtW5pXuVHGrRKrROs"
```
2018-12-27 21:45:39 +05:30
Zachary Rice
734befb555
bad cops bad cops
2018-12-25 09:31:58 -06: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
v1.22.0
2018-12-10 09:48:48 -06:00
Zachary Rice
af7717412f
Merge pull request #159 from camaya/reduce-entropy-noise
...
Reduce noise when running entropy checks
2018-12-10 09:40:05 -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
Zachary Rice
b902d7310a
Merge pull request #158 from camaya/redact-only-secret-on-line
...
Change redacted behaviour on the line information
2018-11-30 08:55:22 -06:00
Zachary Rice
3591560b34
Merge pull request #157 from camaya/add-commit-date-prs
...
Add commit date to Github PRs checks
2018-11-30 08:54:56 -06: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
Cristhian Amaya
cde0894711
Add commit date to Github PRs checks
2018-11-30 13:37:18 +01:00
Zachary Rice
342e9f80db
Merge pull request #152 from camaya/fix-github-pr-nilcheck
...
Fix Github PR checks error
2018-11-29 09:10:36 -06:00
Zachary Rice
96b0f4aab7
Merge pull request #153 from madblobfish/patch-1
...
Fix releases link in readme
2018-11-26 12:03:40 -06:00
madblobfish
3af6a546ac
fix releases link in readme
2018-11-26 11:20:17 +01:00
Cristhian Amaya
6e086c4297
Fix Github PR checks error
...
When a commit contained a file without patch information like an added
empty file, there was a nil pointer dereference.
2018-11-23 11:56:49 +01:00
zricethezav
db08fc0564
actually bump version in code >.<
v1.21.0
2018-11-18 08:43:05 -06:00
zricethezav
dbb6d4cc5f
including camayas changes in version bump
2018-11-18 08:42:32 -06:00
Zachary Rice
d0f44da4c2
Merge pull request #151 from AdamKobi/add_support_for_tokens
...
Add support for tokens
2018-11-18 08:39:17 -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
Adam Kobi
392d79b9e2
added changes to changelog
2018-11-15 19:04:51 +02:00
Adam Kobi
f8e609d4bf
added case for when using oauth token for both listing and cloning repos
2018-11-15 17:58:54 +02:00
Zachary Rice
573bf46fd1
grammar not my best subject
2018-11-13 20:01:44 -06:00
Zachary Rice
d65592bbcc
Update to readme
2018-11-13 19:57:52 -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
Zachary Rice
bd61f2d2f7
Merge pull request #148 from zricethezav/gitlab-support
...
bumping version, format, changelog, uhhhhhh, test... a single test
v1.20.0
2018-11-12 21:45:35 -06: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
Zachary Rice
35531233d9
Merge pull request #147 from zricethezav/fix/first-commit
...
fixing commit count
v1.19.3
2018-11-07 19:39:52 -06:00
zach rice
54949bd62a
fixing commit count
2018-11-07 19:33:39 -06:00
Zachary Rice
e95a8a7158
Merge pull request #146 from zricethezav/fix/first-commit
...
Fix/first commit
v1.19.2
2018-11-06 22:35:26 -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