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
Zachary Rice
b7438011b4
Rm generic from default ( #379 )
...
* fixing commit latest bug
* remove generic rule from default to reduce false positives
2020-05-09 11:21:17 -04:00
Steeve Barbeau
e4b26aea4a
fixing issue #367 ( #368 )
2020-05-09 10:49:00 -04:00
Zachary Rice
473d0d55a7
Whitelist repo ( #378 )
...
* fixing commit latest bug
* bumping go-git and adding repo whitelist
* adding tests
2020-05-09 10:38:02 -04:00
Zachary Rice
4801818e3d
fixing commit latest bug ( #365 )
2020-04-05 11:36:37 -04:00
Zachary Rice
212232f80a
Empty repo audit ( #364 )
...
* bump to go 1.14 and alpine to 3.11
* audit before commit
* adding test
* rm hooks in test repo
2020-04-05 11:18:33 -04:00
Noel Algora
679f00dc9c
Scan files at latest commit ( #348 )
...
* Inspect files at latest commit
Added option to scan files at latest commit
* Files at latest commit test
2020-03-02 20:22:14 -05:00
Zachary Rice
8b3ce2cb1e
forgot to bump in code... ( #347 )
2020-02-26 20:41:54 -05:00
Zachary Rice
94cae90d1e
duplicate leak logic includes the line in hash ( #345 )
2020-02-26 17:38:16 -05:00
Noel Algora
c4b07f5113
Add file regex support ( #340 )
...
* Modified Entropy to be able to apply it on regex match or specific capture group
* Config tests
* Small fixes on entropy ranges
* Fix toml configs
Fix tests
* Start adding support for rules with filename regex
Changed how config is parsed
Created new functions to inspect files and content
* File regex working
* Fixing tests and configs
* Implemented different regex for filename and filepath
* Fix comments
* Audit tests
* Config rename vars
* Fix audit tests
* Filename offender
* Indents and code styles
* Indents and code styles
* Removing bad test repo
* Adding test repo 6 for filename and filepath tests
* global whitelist path and fixes
* Fixes on tests and new test for global whitelisting paths
* Removing unused test
* Fix comment
2020-02-26 15:33:14 -05:00
Zachary Rice
10745be661
fixing commit counts ( #342 )
...
* fixing commit counts
* fixing commit to test
2020-02-25 10:28:03 -05:00
Noel Algora
ee2d73c740
Enhance entropy ( #333 )
...
* Modified Entropy to be able to apply it on regex match or specific capture group
* Config tests
* Small fixes on entropy ranges
* Fix toml configs
Fix tests
* Indents and code styles
2020-02-24 13:44:38 -05:00
zricethezav
e7fbcf5333
updating readme and comments
2020-02-01 16:48:05 -05:00
zricethezav
d13e0fdfde
adding more tests
2020-02-01 11:18:27 -05:00
zricethezav
5a300c3c64
fixing --commit bug, adding --files-at-commit option
2020-01-30 20:08:01 -05:00
zricethezav
1537eeb5fa
Adding timeout check in context select so we dont log erroneously
2020-01-24 18:07:16 -05:00
zricethezav
bd4107b002
ensuring cancel is called after audit is complete so context can be dropped
2020-01-23 18:47:37 -05:00
zricethezav
ce95cafd54
fixing modules, adding v3 in path
2020-01-22 10:21:00 -05:00
zricethezav
f6460a7365
reimplementing depth feature
2020-01-19 12:14:14 -05:00
zricethezav
2f07b96333
adding test, cancelfunc (for go vet)
2020-01-19 10:07:01 -05:00
zricethezav
62e74b2b18
let the repo handle timeouts... better for automating audits anyway
2020-01-19 09:26:06 -05:00
zricethezav
b4c2f8e69c
cleaning up some comments
2020-01-11 16:54:09 -05:00
Zach Rice
a0f72a4e35
Adding commit range feature via 'commit-to' and 'commit-from' options
2020-01-11 16:46:58 -05:00
zach rice
ace8de93a9
limit leak len to 200 characters
2019-12-01 21:30:40 -05:00
Peter Gallagher
db79a96118
Use Unix Epoch time for staged commit time
2019-11-29 10:07:27 +00:00
Peter Gallagher999
5152e1fc63
Reset commit values when auditing uncommitted changes
2019-11-28 23:13:59 +00:00
Peter Gallagher
c04e137b28
Adding global file regex to AuditUncommitted
2019-11-28 22:53:08 +00:00
Peter Gallagher
9b3342fbff
Allow use of --repo-config for AuditUncommitted function
2019-11-28 13:53:52 +00:00
Peter Gallagher
d9a060a12d
Honour file whitelist for AuditUncommitted function
2019-11-28 13:53:18 +00:00
zach rice
cfac551ab8
recover on panic in patch generation, full filepath for report, version message if not built with LDFLAGS
2019-11-23 09:50:16 -05:00
zach rice
f3eac0c958
adding report-format to tests since we dont parse flags
2019-11-17 11:34:15 -06:00
zach rice
3211cfbbb1
fixing a bug, adding csv report option and leak caching
2019-11-17 11:13:34 -06:00
zach rice
f8c054b879
gotta log the reponame on cloned repos
2019-11-15 13:35:34 -06:00
zach rice
7f0b027486
changing ret err to warning for owner-path scan
2019-11-13 20:03:51 -05:00
zach rice
275232f8c8
examples and more tests
2019-11-12 20:08:17 -05:00
zach rice
315ee56024
opts guard and removing severity
2019-11-12 15:18:13 -05:00
zach rice
e446ba0738
fixing all golint and adding some more tests
2019-11-11 21:50:50 -05:00
zach rice
2ccd40677d
adding alt config test
2019-11-10 19:28:02 -05:00
zach rice
e28cfd1ad5
audit test import
2019-11-10 17:08:56 -05:00
zach rice
e5f5e64cdb
fixing module name, updating gitignore and travis
2019-11-10 17:05:36 -05:00
zach rice
b55d88dc15
v3 work... lots of things
2019-11-10 13:30:43 -05:00