Zachary Rice
901f932a89
Add file type checking for unstaged commits ( #512 )
v7.2.1
2021-01-22 11:49:21 -05:00
seb-elttam and Seb Elttam
c0a9580a65
Fix dotgit regex again ( #507 )
...
* fix dotgit regex again
* Revert accidentally modified files
Co-authored-by: Seb Elttam <seb@elttam.com >
2021-01-21 15:31:21 -05:00
Paweł Kowalczyk
8be91eea5d
Add exit code 1 on invalid usage, fixes #500 ( #501 )
2021-01-10 09:34:31 -05:00
Zachary Rice
1c6f2252b8
Update README.md
2020-12-11 20:55:32 -05:00
Zachary Rice and Zach Rice
58d130c5f3
Quiet flag ( #491 )
...
* Adding a quiet option
* better description
Co-authored-by: Zach Rice <zrice@gitlab.com >
v7.2.0
2020-12-11 09:56:09 -05:00
Zachary Rice
091ea81e68
nosec gosec ( #490 )
2020-12-10 22:32:32 -05:00
Zachary Rice
f036dce6ab
Dotgit bug ( #488 )
...
* fix allowlist bug
* Adding new repo for testing allowlisting
* adding additional constraints on the dotgit regex
2020-12-10 17:41:26 -05:00
Zachary Rice
2d58f1f94e
Files at commit allow list bug ( #485 )
...
* fix allowlist bug
* Adding new repo for testing allowlisting
* Adding missing allowlist checks for commits and files/paths
v7.1.2
2020-12-09 15:55:01 -05:00
Zachary Rice
86cfe0848b
Allow list bugs ( #484 )
...
* fix allowlist bug
v7.1.1
2020-12-09 13:21:15 -05:00
Zachary Rice
973d74e592
Update README.md
2020-12-08 20:55:53 -05:00
Zachary Rice
3909ebe03b
Exit code update, introduce leaks-exit-code flag ( #481 )
v7.1.0
2020-12-08 17:41:02 -05:00
Zachary Rice
65f42020af
Go repo scan ( #480 )
...
* Real fast
* Addressing some golint stuff
2020-12-08 17:22:28 -05:00
Zachary Rice
65a91ae976
Removing base scanner ( #477 )
2020-12-08 09:24:38 -05:00
Zachary Rice
7db08bfd90
Bugs v7 ( #475 )
...
* fixing some v7 bugs
v7.0.2
2020-12-05 11:57:43 -05:00
Matt Bartel
af26553292
Performance improvement for uncommitted files ( #463 )
...
* attempt to use 'git status' when scanning uncommitted files
* fix comment
* correct copy/rename handling
* use 'git status' for unstaged changes
2020-12-04 18:08:27 -05:00
Zachary Rice
d5e431e7d4
Update README.md
2020-12-03 17:20:46 -05:00
Zachary Rice
54ba3ec377
Update README.md
2020-12-03 17:09:59 -05:00
Zachary Rice
656ef1c9a7
Update README.md
v7.0.1
2020-12-03 16:56:16 -05:00
zricethezav
b8accd7273
rm unimplemented cleanpath option
2020-12-03 15:43:06 -05:00
zricethezav
238c31beaa
Merge branch 'master' of github.com:zricethezav/gitleaks into master
2020-12-03 10:08:41 -05:00
Zachary Rice
eb31190f31
Removing limiting line/offender length ( #470 )
2020-12-03 09:32:57 -05:00
zricethezav
389d45e380
Removing limiting line/offender length
2020-12-03 09:28:30 -05:00
zricethezav
81b3a6e279
Update readme
v7.0.0
2020-12-02 17:11:47 -05:00
Zachary Rice
c50906373c
update to V7 ( #469 )
2020-12-02 17:07:31 -05:00
Zachary Rice
40545fb680
Need to include offender in line extraction memoization ( #466 )
2020-11-21 15:49:59 -05:00
Daniel Paul Searles and Daniel Paul Searles
2acc34dfdf
Add support for reportGroup ( #456 )
...
Why:
* There are times where it would be nice to have a group from the regex
reported rather than the complete match.
This change addresses the need by:
* Add the reportGroup configuration option for a rule.
* Update scan.CheckRules to return the reportGroup if set.
Co-authored-by: Daniel Paul Searles <dsearles@gitlab.com >
v6.2.0
2020-11-03 15:15:48 -05:00
zricethezav
ede68fd95d
fix off by one
v6.1.2
2020-09-02 08:36:19 -04:00
Zachary Rice
6c60c3dde3
Adding some logic to fix line number extractor when there are multipl… ( #436 )
...
* Adding some logic to fix line number extractor when there are multiple secrets of the same offender within the same patch
* formatting some consts
v6.1.1
2020-09-01 20:48:43 -04:00
Zachary Rice
ad505754fc
Add commits and commits-file option ( #433 )
v6.1.0
2020-08-31 10:29:04 -04:00
Zachary Rice
21d81879e2
Update README.md
2020-08-27 14:11:11 -04:00
Lars Lehtonen
b5ca2ba614
scan: fix dropped errors ( #424 )
2020-08-20 15:42:42 -04:00
Zachary Rice
ef4655fcf1
Sarif ( #421 )
...
* init
* more work
* more sarif work
* mergin
v6.0.0
2020-08-12 18:07:24 -04:00
Zachary Rice
01b553a75d
Update Makefile
2020-08-12 17:51:56 -04:00
Zachary Rice
fae366a404
Global allowlist regex ( #422 )
...
* work in progress
* Update test configs
* adding test
* golint and change to allowlist
* fix race condition, this mistakenly got committed
* Updating tests and examples
* bump to v6 as this is a breaking change to the config
* More consistent variables
2020-08-12 17:18:25 -04:00
Lars Lehtonen
6129b1a15d
hosts: dropped error ( #417 )
2020-07-31 08:45:47 -04:00
Manuel Jeckelmann
31d03a1146
Clean up 'uncommitted' diff. ( #416 )
2020-07-28 08:55:33 -04:00
Zachary Rice
eabc7b5c12
Fixing merge commit scans and large patch rule checking ( #414 )
...
* Fixing merge commit scans and large patch rule checking
* Adding tests for merge request scans
v5.0.1
2020-07-25 14:55:59 -04:00
zricethezav
1dc7569f95
removing extra log import...
2020-07-24 14:42:54 -04:00
zricethezav
1797e9c966
Merge branch 'master' of github.com:zricethezav/gitleaks
2020-07-24 14:07:25 -04:00
zricethezav
e2eaceb4cd
rm bad example config
2020-07-24 14:07:00 -04:00
Zachary Rice
c637b129ec
Validate config ( #412 )
...
* validate config
* fix import fmt
* cleaning
2020-07-24 14:02:48 -04:00
zricethezav
8470e43d7f
validate config
2020-07-24 13:54:01 -04:00
Zachary Rice
94f5950d68
Use allowlist ( #411 )
v5.0.0
2020-07-24 11:58:43 -04:00
Zachary Rice
fe69a17c9c
Change remaining audits to scan ( #410 )
2020-07-24 11:30:33 -04:00
Zachary Rice
6ca7a11d88
Add line number to report plus some other things ( #409 )
...
* Init refactor
* think i got it working
* we got em
* Updating tests
* fixing tests
* Better comments, more test fixing
* Bumping to v5
* Fixing golint messages
* Replacing usage of audit with scan in comments
* bumping go-git
* Updating to v5 in some other spots
2020-07-24 10:49:03 -04:00
Zachary Rice
cfbb600fcb
Fixing patch direction and making additions the default ( #408 )
...
* Fixing patch direction and making additions the default
* adding test
2020-07-22 13:32:46 -04:00
Zachary Rice
e36b550851
adding go mod/sum to ignore, adding quotes to aws secret rule ( #397 )
...
* adding go mod/sum to ignore, adding quotes to aws secret rule
* lil nicer formatting
2020-06-14 15:41:04 -04:00
zricethezav
2232dc191c
removing bad options guard
v4.3.1
2020-06-03 08:51:11 -04:00
Zachary Rice
bdc688dd53
fix whitelist commits, added test ( #390 )
v4.3.0
2020-05-31 10:25:58 -04:00
Steeve Barbeau
e0f6399d5c
Audit commits based on date/time parameters ( #385 )
...
* time based audit
* fixing SIGSEGV
* adding options for date and time format + tests
* Update repo.go
* Update github.go
* rebase + tests update
2020-05-24 18:03:47 -04:00