Zachary Rice
40e9172ab3
Update README.md
2022-07-08 17:19:12 -05:00
Zachary Rice
9033132143
Update README.md
2022-07-08 17:07:58 -05:00
Zachary
1fc27eebda
adding access to generic rule keywords and identifiers
2022-07-05 15:33:06 -05:00
Craig Smith and Craig Smith
f4ddeda433
Fix proper names capitalization ( #907 )
...
Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com >
2022-07-05 08:26:41 -05:00
Romain Barissat
6210a7e832
Add multi platform build ( #897 )
...
Signed-off-by: Romain Barissat <romain-noreply@barissat.com >
2022-07-02 15:28:01 -05:00
Zachary
e300b31be5
update twitter rule generation description and id
2022-06-28 06:13:07 -05:00
Zachary
3073e45b0a
capitilze twitter description
2022-06-28 06:11:10 -05:00
Zachary
d401bd337a
Merge branch 'master' of github.com:zricethezav/gitleaks
2022-06-28 06:10:14 -05:00
Zachary
1297b41b10
adding travis ci
2022-06-28 06:10:02 -05:00
Craig Smith and Craig Smith
d44cb91306
Fix id and description for twitter tokens ( #905 )
...
Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com >
2022-06-28 06:09:04 -05:00
Zachary Rice
efdc7749df
Adding okta, codecov, zendesk, and updating Atlassian's rule to include jira keyword ( #904 )
...
* okta
* adding codecov
* add jira to atlassians keywords
* adding zendesk
2022-06-27 20:49:08 -05:00
Zachary Rice
e78a22e19c
Fix Plaid, add Plaid access token ( #903 )
...
* adding airtable and adafruit
* Fix plaid, add plaid-access-token
2022-06-27 18:49:32 -05:00
Zachary Rice
9cc19ec0f8
adding airtable and adafruit ( #902 )
2022-06-27 18:31:06 -05:00
Zachary
05c165deb2
Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule
2022-06-27 17:03:32 -05:00
Zachary Rice
f6a87ca58c
Remove ssn allowlist ( #898 )
...
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* remove ssns from allowlist since default config does not detect ssn
2022-06-27 08:58:00 -05:00
Zachary Rice
73a3cf8afb
Adding a bunch of new rules, update allowlist to include node_modules… ( #896 )
...
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* use func instead of function in stopwords
2022-06-25 11:43:51 -05:00
Zachary Rice
d196b83ca6
contributing guidelines first draft ( #895 )
...
* contributing guidelines first draft
* update links, add readme note
2022-06-23 17:17:39 -05:00
Alex
35f2ea5da2
Lint python commit script to satisfy PEP8 ( #893 )
2022-06-21 06:55:43 -05:00
Zachary Rice
70028079b4
Update generate ( #892 )
...
* maintain parity with recent changes... need to create rule contributing guidelines
* missed on, ensure uniqueness in rule-id
2022-06-20 14:57:48 -05:00
Zachary Rice
c14af5ffdf
maintain parity with recent changes... need to create rule contributing guidelines ( #891 )
2022-06-20 14:14:14 -05:00
Craig Smith and Craig Smith
06b1396a2a
Fix duplicate TOML Rules and IDs ( #889 )
...
* Remove duplicate rule
* Fix duplicate rule IDs
Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com >
2022-06-20 08:49:47 -05:00
Zachary Rice
5d3f247d7d
Update README.md
2022-06-16 08:11:20 -05:00
Zachary Rice
404dd8e0c0
Update gitleaks.yml
2022-06-15 17:20:08 -05:00
Zachary Rice
3a1ab48818
Update README.md
2022-06-12 13:25:03 -05:00
Zachary Rice
f5c2b636f3
user accounts don't need gitleaks license
2022-06-07 11:48:43 -05:00
Zachary Rice
b5ed7ff1b2
Update README.md
2022-06-02 17:47:36 -05:00
Zachary Rice
09007da395
Add gitleaks badge
2022-06-02 17:46:47 -05:00
Zachary Rice
d51ce47d86
Create gitleaks.yml ( #884 )
2022-06-02 17:40:57 -05:00
Zachary Rice
6919447094
add link to gitleaks.io
2022-06-02 17:21:08 -05:00
foolioo and x
c3b7932544
fix git unsafe directory ( #883 )
...
* fix git unsafe directory
fixes https://github.com/zricethezav/gitleaks/issues/846
* Update Dockerfile
Co-authored-by: x <>
2022-06-02 14:22:03 -05:00
Zachary Rice
82e409a434
Limit newlines regex ( #881 )
...
* improve regex to reduce fps with newlines
* remove version from regex and rely on stopwords instead
* add false positive for validation
2022-05-30 12:07:06 -05:00
Zachary
0eb57cbe4d
add combo to stopwords, update cmd/generate
2022-05-28 11:47:17 -05:00
Don C. Bigler
3531887941
Fix generic-api-key detected erroneously (zricethezav#877) ( #878 )
2022-05-28 11:44:49 -05:00
Zachary Rice
e9ebde73bc
ignore end line when comparing generic rules ( #879 )
2022-05-28 09:49:27 -05:00
Zachary Rice
469cd22f61
updating generic regex and algoia regex ( #875 )
2022-05-25 08:00:10 -05:00
SimonGurney
93e72c215d
feat: add algolia key support ( #866 )
...
* feat: add algolia key support
* feat: add algolia key to generator
* chore: update algolia regex to match gen
2022-05-25 07:39:20 -05:00
Dirkjan Bussink
865478bcdc
Improve PlanetScale token detection ( #874 )
...
This improves the PlanetScale token detection. It add some flexibility
in length. There is no guarantee that the length is always 43 characters
(in fact, it's very likely to change a bit soon).
Additionally, it adds support for detecting oauth tokens as well.
2022-05-24 22:15:36 -05:00
Zachary Rice
d6c0de7c85
Update README.md
2022-05-16 19:08:06 -05:00
Zachary Rice
0266ab8958
Adding JIT Security messages
2022-05-10 11:21:04 -05:00
Zachary Rice
6b7ab73a52
Update README.md
2022-05-02 10:21:40 -05:00
Zachary Rice
61ee7c58cc
fix no-git bug ( #859 )
2022-04-27 21:48:56 -05:00
Zachary Rice
ad7509e3b4
Removing private keyword from private key rule ( #858 )
2022-04-27 07:29:09 -05:00
Zachary Rice
a62cc52aba
nasty little bug ( #853 )
2022-04-23 11:18:56 -05:00
Zachary Rice
f93e5dc844
adding a ton of stopwords to the generic rule only as that is the loudest rule ( #851 )
2022-04-21 17:01:21 -05:00
Zachary Rice
8481f0e9cd
adding stopwords ( #849 )
...
* adding stopwords
* format readme, update default config
2022-04-21 08:31:58 -05:00
Zachary Rice
82f7d61593
Update dockerfile ( #848 )
...
* bump alpine and add default safe dir for git
* comment out safe dir fix
* update deps
2022-04-20 18:19:33 -05:00
Zachary Rice
a42b32bdf1
fix EOL in secret suffix ( #847 )
...
* fix EOL in secret suffix
* allow quoted key value syntax
2022-04-20 17:55:07 -05:00
foolioo
79638b080c
unpin docker version in pre-commit hook ( #832 )
...
eliminating inconsistency. e.g. for version 8.6.1, pre-commit hooks points to outdated version https://github.com/zricethezav/gitleaks/blob/c33ee3f25215635c0afbb210672779e7efb6f1d2/.pre-commit-hooks.yaml#L10
2022-04-19 21:33:23 -05:00
Zachary Rice
3474c58c9e
Generate tps ( #845 )
...
* WIP
* simplify tp generation
2022-04-18 21:59:38 -05:00
Zachary Rice
d8cd93cabe
maybe fix out of bounds ( #843 )
2022-04-18 14:57:40 -05:00
Zachary Rice
48b79facfa
optimize keywords ( #841 )
...
* optimize keywords
* use defaults for concurrency again
2022-04-16 17:41:40 -05:00
0xn3va
e23f7f58f3
Update detect.go ( #839 )
2022-04-12 21:44:00 -05:00
Zachary Rice
606bb1a13b
Standardize/alphabetize rules, add cmd/generate/config package ( #840 )
2022-04-12 21:40:48 -05:00
aeongdesu
e784980515
fix ghcr.io typo in README.md ( #835 )
2022-04-08 08:05:06 -05:00
Zachary Rice
c33ee3f252
normalize keyword check ( #830 )
2022-04-06 09:55:36 -05:00
Zachary Rice
b0a958f55e
Keyword ( #825 )
...
* wip keywords optimization
* update readme
* limit concurrency to 4
* update readme
2022-04-05 11:50:50 -05:00
foolioo
237b03af18
doc gitleaks-docker pre-commit hook ( #819 )
...
relates to #818
2022-03-29 20:05:28 -05:00
Zach Rice
f348991d21
Merge branch 'master' of github.com:zricethezav/gitleaks
2022-03-29 11:54:05 -05:00
Zach Rice
e0745adbd2
skip content checks for path only rules
2022-03-29 11:53:48 -05:00
foolioo
1ddc924a67
use official docker image as pre-commit hook ( #818 )
...
* use official docker image as pre-commit hook
* Update .pre-commit-hooks.yaml
* Update .pre-commit-hooks.yaml
* Update .pre-commit-hooks.yaml
* Update .pre-commit-hooks.yaml
* Update .pre-commit-hooks.yaml
2022-03-28 17:18:12 -05:00
Zach Rice
0b07625567
remove stopwords from global allowlist
2022-03-28 08:03:16 -05:00
Adam Shannon
0cabbf8ca8
detect: skip binary files with --no-git ( #810 )
2022-03-22 14:32:47 -05:00
Zachary Rice
ba9e089e35
fixing a location off by one edge case for --no-git ( #812 )
2022-03-22 14:22:46 -05:00
Zachary Rice
31ff8677dd
Update README.md
2022-03-21 13:36:29 -05:00
Zachary Rice
3e5e63956e
Allow tag ( #809 )
...
* gitleaks:allow signature
* readd all tests
* fixing tests
2022-03-19 10:32:04 -05:00
Zachary Rice
57f9bc83d1
Stop words ( #808 )
...
* use regex for stopwords
* fix up regex
* rm stopwords
2022-03-19 09:31:38 -05:00
Zachary Rice
6e72472b60
Refactor detect, add entropy to all findings ( #804 )
...
Refactor `detect`, add `entropy` to all findings
2022-03-12 11:50:01 -06:00
Isaac Dawson
9326f35380
Escape - character in regex character groups ( #802 )
...
* fix char escape
* add test
* fix verbosity in make test
2022-03-07 08:33:06 -06:00
jetexe
19555579c8
adding go mod/sum to ignore ( #797 )
2022-03-01 10:16:17 -06:00
Greg Johnson and Greg Johnson
60dd607312
GitLab pats may contain underscores as well as dashes ( #794 )
...
* gitlab pats may contain underscores as well as dashes
* include testdata index binary
Co-authored-by: Greg Johnson (codeEmitter) <gjohnson@gitlab.com >
2022-02-28 08:03:09 -06:00
Andrzej Amghar
c3b799ec63
ignore k8s apiVersion in generic-api-key pattern ( #760 )
2022-02-22 17:00:20 -06:00
rui
4b6f4d0de5
build: updates for go1.17 ( #769 )
...
* build: remove `GO111MODULE` as it turned on by default
Signed-off-by: Rui Chen <rui@chenrui.dev >
* build: update for go1.17
* run test
Signed-off-by: Rui Chen <rui@chenrui.dev >
* lint: remove unused code
2022-02-22 16:49:45 -06:00
Zachary Rice
fbfb3f591e
allow non-last-element secret groups ( #792 )
2022-02-22 16:34:56 -06:00
Zachary Rice
b91799aa18
fixing segfault when using a rule with only a path ( #791 )
...
* fixing segfault when using a rule with only a path
* DRYing
2022-02-22 15:58:03 -06:00
Luca Regne
db1b54bf9f
Fix: Typo in LinkedIn id ( #789 )
2022-02-22 09:49:55 -06:00
Ian Mckay
e9529744f8
Fix vendor name casing, Flutterwave typo ( #785 )
2022-02-19 10:24:47 -06:00
Chris Wolf
d1f642a9df
Sarif results with empty rules now represents as [] instead of null/nil ( #786 )
2022-02-19 10:20:35 -06:00
Greg Myers
9261f1c47f
Fix typos in README.md ( #780 )
...
comand ==> command
awsome ==> awesome
precendence ==> precedence
2022-01-29 12:08:55 -06:00
Zachary Rice
991223abab
remove godoc text filtering ( #763 )
2022-01-07 10:59:51 -06:00
Zachary Rice
801d44a6e4
limit number of goroutines for historic scanning as well ( #761 )
2022-01-07 08:58:47 -06:00
Zach Rice
44d7d89e19
always write sarif results
2021-12-28 19:13:26 -06:00
Zachary Rice
aae23acff3
limit goroutines on file scanning to avoid pegging them cores ( #759 )
2021-12-21 18:10:29 -06:00
Zachary Rice
705595aaf6
Adding Typeform to sponsorships
2021-12-21 08:26:47 -06:00
Zachary Rice
43ec22429f
write a report regardless if leaks are present ( #758 )
2021-12-17 17:26:14 -06:00
Zachary Rice
36779df3bb
stricter ionic regex for less fps ( #757 )
2021-12-17 10:13:44 -06:00
Zachary Rice
3d3d801729
fixing eof location bug ( #756 )
2021-12-17 09:49:12 -06:00
Zachary Rice
0f2ffee6f9
Adding Tines sponsorship to readme
2021-12-16 10:39:45 -06:00
Andrzej Amghar
f4d37a2c0d
fix regexp for aws_key and slack_webhook ( #754 )
2021-12-16 07:48:18 -06:00
Zachary Rice
be5596df1d
Update README.md
2021-12-12 13:38:43 -06:00
Zachary Rice
e97f26bb5f
better asciinema
2021-12-12 13:36:57 -06:00
Zachary Rice
ae13c96df8
Update README.md
2021-12-12 13:19:58 -06:00
Zachary Rice
d15dfdc387
Update README.md
2021-12-12 13:19:06 -06:00
Zach Rice
631d8dcf03
bump go-gitdiff
2021-12-12 12:23:59 -06:00
Zachary Rice
192b96289f
do not fail on git rename warning ( #750 )
2021-12-12 11:43:03 -06:00
Zachary Rice
b8141713e8
add pre-commit instructions ( #749 )
2021-12-10 18:08:31 -06:00
Zachary Rice
3fedf6f8e7
remove writing default config, introduce GITLEAKS_CONFIG ( #746 )
...
* remove writing default config, introduce GITLEAKS_CONFIG
* setting report format default to json, update readme
2021-12-09 09:21:17 -06:00
Zach Rice
6f6ebd454f
fix off by one line number for --no-git
2021-12-08 15:04:32 -06:00
Zachary Rice
ce42947cae
fix deduplication issue caused by clobbered findings ( #742 )
...
* fix deduplication issue caused by clobbered findings
* fix index
* remove indexing, slow is better than wrong
2021-12-07 19:11:37 -06:00
Zach Rice
84e285e4ce
ignore gitleaks.toml by default
2021-12-06 10:43:21 -06:00
Ben Randall
928c6a6043
Update pre-commit step to run gitleaks checks ( #729 )
...
* Fix pre-commit config.
* Debug output
* No debug and use redacted.
* Typo
* Add back staged.
* Update .pre-commit-hooks.yaml
* Update .pre-commit-hooks.yaml
2021-12-03 16:09:05 -06:00
Florian Greinacher
106897fdf0
fix: format dates in log in a portable way ( #735 )
...
The output of time.String() depends on the runtime environment and should only be used for debugging.
This commit ensures that a well-defined UTC time is written to the report.
2021-12-03 09:34:57 -06:00
Zachary Rice
98d5648f6e
introducing secretGroup, the best group ( #734 )
...
* working on deduping
* my eyes... oh god my poor eyes
* more readme
* more readme
* more readme
* more readme and formatting
2021-12-02 20:04:36 -06:00
zricethezav
9358e84588
fix typo in readme
2021-12-02 13:55:43 -06:00
zricethezav
958c18f0b7
fix typo in config help
2021-12-02 13:44:39 -06:00
Zachary Rice
089639e9fb
bump go-gitdiff ( #731 )
2021-12-02 08:29:38 -06:00
Zachary Rice
85afd767f7
Update README.md
2021-12-01 18:38:22 -06:00
Zachary Rice
38006fb93b
Update README.md
2021-11-30 14:31:08 -06:00
Zachary Rice
9ae1def963
lil hack to avoid scans 'finishing' when git errors are present ( #726 )
2021-11-30 12:31:25 -06:00
Zachary Rice
6517900e5a
Update README.md
2021-11-30 12:24:10 -06:00
Zachary Rice
5e51da600b
use exit code 126 on 'unknown-flag' errors ( #723 )
2021-11-30 09:47:00 -06:00
Zachary Rice
f0b8d26c99
Update README.md
2021-11-27 10:40:00 -06:00
Zachary Rice
1724591029
remove generic api key from default gitleaks config ( #719 )
2021-11-27 10:01:52 -06:00
Zachary Rice
80d29764a0
add global regex check ( #717 )
2021-11-25 11:17:03 -06:00
Zachary Rice
f498b1d308
Commit debug log ( #716 )
...
* adding debug log for number of commits scanned
* change debug text
* readd commitsha
2021-11-25 10:46:47 -06:00
Joost Voskuil
8eabfd614e
Update sarif.go ( #713 )
...
* Update sarif.go
Provide correct version information for Sarif Reports
* Update test
Set version to correct Sarif version
2021-11-25 10:46:31 -06:00
Zachary Rice
4acd7a3c8d
adding logic to ignore gitleaks config during scans ( #710 )
2021-11-24 20:27:19 -06:00
zricethezav
a37822dffd
remove --show-pulls from git log
2021-11-24 08:06:13 -06:00
Zachary Rice
1c6b28aa61
removing --simplify-merges and --show-pulls ( #707 )
2021-11-24 07:30:59 -06:00
Zachary Rice
f15b4e408b
Update README.md
2021-11-22 14:25:42 -06:00
Zachary Rice
d5f9d2b5d2
Update README.md
2021-11-22 14:25:06 -06:00
zricethezav
67a7069bb8
trying again
2021-11-22 12:15:31 -06:00
zricethezav
fd5d786538
override version in goreleaser
2021-11-22 12:11:02 -06:00
zricethezav
c017b763f3
actually we gonna use git describe for docker build
2021-11-22 11:46:24 -06:00
zricethezav
e796458763
remove sorting tags
2021-11-22 11:29:31 -06:00
zricethezav
2a9fbbc64d
remove git fetch tag from docker build process, already available
2021-11-22 11:21:55 -06:00
zricethezav
d6081d0cc4
actually use github.actor
2021-11-22 11:09:08 -06:00
zricethezav
e6c3a495ce
hardcode username to avoid redaction in action
2021-11-22 11:07:40 -06:00
Zachary Rice
93f292c3df
Introducing v8.0.0 changes ( #701 )
...
* Introducing v8.0.0 changes
2021-11-22 10:43:51 -06:00
Ramon
780fb4a8f1
Merge pull request #653 from w0rmr1d3r/document_issue_638
...
Updating documentation on how to build the docker image (issue #638 )
2021-10-28 08:50:04 +02:00
Ramon
0d9ab37ba4
Merge pull request #678 from ihassanyousaf/patch-1
...
fix possible typo in README.md `leaves` had been written instead of `leaks`
2021-10-28 08:48:52 +02:00
Ramon
acffe44440
Merge pull request #658 from w0rmr1d3r/update_pre-commit_example
...
Update readme
2021-10-28 08:48:37 +02:00
M.Hassan Yousaf
178f78fa14
fix possible typo in README.md
2021-10-27 19:07:21 +02:00
Ramon
1ab1ae0e70
Merge pull request #673 from dirkaholic/fix/issue-672
...
Update regex for AWS secret key (issue #672 )
2021-10-26 15:43:47 +02:00
Dirk Pahl
9f8ca91b8b
Adjust AWS secret key rule
2021-10-26 15:09:42 +02:00
Dirk Pahl
eec6c5a391
Fix tests with existing AWS secret keys
2021-10-26 13:29:36 +02:00
Dirk Pahl
714c0bef1e
Update regex for AWS secret key
2021-10-26 12:35:35 +02:00
Ramon
e9b699dda1
Merge branch 'master' of https://github.com/w0rmr1d3r/gitleaks into update_pre-commit_example
...
Conflicts:
README.md
2021-10-19 14:57:53 +02:00
Ramon
5afe59d2fa
Merge pull request #662 from lucas-apd/patch-1
...
ADD_installation_from_bin
2021-10-19 14:54:11 +02:00
Lucas Alcântara
8adf27b1ea
Update README.md
2021-10-19 09:50:39 -03:00
Ramon
aecd32075e
Merge pull request #665 from krsche/feature/fix-typo-in-readme
...
fix: typo in readme
2021-10-19 09:44:36 +02:00
Fabian Kirschner
290118cbbe
fix: typo in readme
2021-10-14 22:12:24 +02:00
Lucas Alcântara
d2e1e43a25
ADD_installation_from_bin
...
ADD_installation_from_bin
2021-10-13 16:41:36 -03:00
Ramon
2161ff358b
Merge pull request #654 from nickrussler/master
...
Bump alpine to v3.14.2
2021-10-11 08:19:22 +02:00
Ramon
f338bc584f
Merge pull request #558 from AmitHofree/fix_default_config
...
Removed unnecessary backslashes in default config
2021-10-11 08:17:17 +02:00
Ramon
e6a132bf4f
Merge pull request #660 from GrahlmanMatthew/master
...
Fixed bug in extractLine function which was returning incorrect line # …
2021-10-11 08:16:57 +02:00
Ramon
8625cc30db
Merge pull request #661 from danielorihuela/fix/loading-csv-reports-in-excel-with-commits-with-new-lines-characters
...
fix: csv report in excel
2021-10-11 08:16:33 +02:00
Matthew E. Grahlman
7cc3d7e467
Fix for Windows OS
2021-10-10 17:27:45 -04:00
Matthew E. Grahlman
b8ff5eec73
Had to re-add testdata/ folder to project in order to get scan tests passing on Windows
2021-10-10 16:40:13 -04:00
Matthew E. Grahlman
36a4871585
Made changes to add support for cross-platform (os) testing as tests would pass on MacOS but no Windows
2021-10-10 16:38:24 -04:00
amith-legit
c85ebbb2ba
Try to revert index file
2021-10-10 22:51:54 +03:00
amith-legit
3a3e13c3b5
Added EOL to sample file
2021-10-10 22:51:44 +03:00
dani
14a00e1ffd
chore: lint code
2021-10-10 12:47:46 +02:00
Ramon
bd707fa9c4
fix: csv report in excel
2021-10-10 12:45:35 +02:00
Ramon
5e6b1840df
Merge pull request #659 from chenrui333/add-apple-m1-support
...
build: add apple m1 support
2021-10-10 11:41:37 +02:00
Matthew E. Grahlman
d8e3a694f2
Fixed bug in extractLine function which was returning incorrect line # when the line contains multiple vuln types
2021-10-09 10:55:39 -04:00
Rui Chen
05e3462025
build: add apple m1 support
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
2021-10-08 16:53:52 -04:00
AmitHofree
b83fe80968
Merge branch 'master' into fix_default_config
2021-10-08 22:26:35 +03:00
Ramon
5db0159c52
update readme
2021-10-08 15:05:34 +02:00
Nick Russler
5f87c4137c
Bump alpine to v3.14.2
...
This alpine release includes fixes for openssl CVE-2021-3711 and CVE-2021-3712
2021-10-04 21:51:59 +02:00
Ramon
ea94318ba3
updating documentation on how to build the docker image
2021-10-04 12:48:15 +02:00
Dustin Shimono and dustin
3128789777
Add clarification in README.md that Go 1.16+ required. ( #651 )
...
* fix: fix the multiple scan executions from pre-commit hook
* docs: add clarification note about Go version required\
Ref 646
Co-authored-by: dustin <dustinshimono@gmail.com >
2021-09-30 11:00:21 -05:00
Dustin Shimono and dustin
270207e5eb
fix: fix the multiple scan executions from pre-commit hook ( #649 )
...
Co-authored-by: dustin <dustinshimono@gmail.com >
2021-09-30 09:49:09 -05:00
Ramon
efe96640fc
Merge pull request #645 from b-abderrahmane/patch-1
...
Fixed minor typo in Readme.md
2021-09-26 18:59:43 +02:00
b-abderrahmane
0137637c2c
Fixed typo in Readme.md
...
Fixed description of main example rule
2021-09-25 11:14:52 +02:00
Zachary Rice
6adc045580
Simplify tests and continue on object not found errors ( #633 )
...
* adding files
* init better tests
* add basic .git
* more tests and test data
* nogit, unstaged tests
* removing unused testdata
* adding empty testdata
* rm gitmodules
* fixing tests
* remove with config
* adding with_config
* removing old test_data, updating config tests
* removing hooks in testdata repos
2021-09-09 11:46:31 -05:00
amith-legit
45c898c5ea
Added a test for fixed Google and Square config
2021-09-09 11:29:34 +03:00
Ramon
95f8bd0daa
Merge pull request #631 from EliSchleifer/elischleifer/fix-readme
...
Fix README link
2021-09-09 09:54:48 +02:00
Eli Schleifer
2cc2519302
Fix README link
...
Fix up readme link
2021-09-09 00:06:48 -07:00
amith-legit
be13bba64c
Merge branch 'master' into fix_default_config
2021-09-09 10:02:53 +03:00
Ramon
7111a698c0
Merge pull request #621 from Ido-DY/master
...
fix(git-symlink-new-repo): fix handling symbolic links in new git repo
2021-09-08 11:00:58 +02:00
Zachary Rice
8b9092a248
Create README.md
2021-09-07 15:29:56 -05:00
Ramon
0aa05133a9
Merge pull request #627 from w0rmr1d3r/update_documentation
...
Update documentation
2021-09-07 15:32:37 +02:00
Ramon
2952df5432
update documentation
2021-09-07 08:44:46 +02:00
Zachary Rice
541e26b067
Update FUNDING.yml
2021-09-06 16:51:38 -05:00
Eddie Austin and eddie-northcutt-wfp0
6018a6bb70
No longer generate empty reports ( #577 )
...
* return nil when no leaks found and lowercase report format option (#3 )
* lowercase format options for consistency
* lowercase report format description
Co-authored-by: eddie-northcutt-wfp0 <eddie.northcutt.wfp0@statefarm.com >
2021-09-06 16:39:50 -05:00
Zachary Rice
ca987b3842
Update README.md
2021-09-04 19:27:44 -05:00
Ido Markovitz
67f8d28d7f
fix(git-symlink-files): fix handling symbolic links in unstaged changes
2021-09-04 11:10:53 +03:00
Ido-DY
f88abe99d7
Merge branch 'zricethezav:master' into master
2021-09-04 10:36:26 +03:00
Zachary Rice
6ddf27c5c3
Fix premature exit for nogit scans, limit goroutines ( #619 )
...
* fix premature exit on nogit scan, actually limit concurreny for nogit
* removing files scanned log
2021-09-03 19:32:33 -05:00
Zachary Rice
aadd9387b2
Create maintenance.md
2021-09-03 11:01:05 -05:00
Zachary Rice
0fd68c901d
GitHub test ( #617 )
...
* drop travis
* remove travis
* rename, use example
* typo
* different syntax
* rename to test
* split test and build into two jobs
* add gosec job
* drop gosec for now
2021-09-03 08:41:17 -05:00
zricethezav
17a3943afe
bump golang docker version
2021-09-02 14:44:58 -05:00
Zachary Rice
abc73e2443
use embed pkg for default config, update deps ( #616 )
2021-09-02 14:42:14 -05:00
Zachary Rice
3c1751e5c4
Update alpine, use gitleaks user instead of root ( #615 )
...
* Updating alpine, use gitleaks user instead of root
* remove comments
2021-09-02 10:21:22 -05:00
Ido-DY
a32ef6afc4
fix(git-symlink-commits): fix handling symbolic links in a git repository ( #612 )
2021-09-02 09:35:38 -05:00
rotem-cider
127df8a6f0
Updated RuleId in Sarif ( #613 )
2021-09-02 09:34:45 -05:00
Ivan Kalita
aa91fd3e5e
Fix default twitter rules ( #614 )
...
Regexps for default Twitter rules ("Twitter Secret Key" and "Twitter Client
ID") have a small flaw that make the default configuration vulnerable to
some false-positives.
I believe these rules should detect the cases like (SOME_CLIENT_ID should
be longer):
```
"twitter_client_id": "SOME_CLIENT_ID"
```
However, currently the twitter rules also detect the false positives for the
cases like:
```
someObj := twitter.NewObjectWithALongName()
config.Twitter.DomainAccessToken
```
I'm trying to address this issue the similar way it's done for facebook client
ids and AWS secret keys, where the secret is expected to be quoted.
2021-09-02 09:26:01 -05:00
Ido Markovitz
c8e97d97f9
fix(git-symlink-commits): fix handling symbolic links in a git repository
2021-08-29 15:02:37 +03:00
Emma Sax
67e3603ba4
Remove --commit-from and --commit-to from docs ( #605 )
2021-08-20 12:18:27 -05:00
Tomasz Wierzchowski
f62617d7a6
Update type in config example ( #597 )
2021-08-13 08:42:31 -05:00
Zachary Rice
9324184c24
Update README.md
2021-08-13 08:29:42 -05:00
Zachary Rice
a80ce0d251
Update README.md
2021-07-29 17:40:34 -05:00
Ramon
c1c4a93f98
Fix issue #523 ( #561 )
...
* updating documentation regarding issue #523
* improving README.md file
2021-05-10 11:39:09 -05:00
Norman Ziegner
e74e6292ee
Fix example in leaky-repo.toml ( #559 )
...
Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de >
2021-05-07 09:08:03 -04:00
Tomy Guichard
25c3e92c2a
SSH auth: Add custom username support ( #536 )
...
* Add support for custom username when using SSH auth
Previously, the user "git" was hard-coded
This commit also adds support for ssh:// URLs
* Add comment to explain username parsing
2021-05-05 12:30:12 -04:00
Zachary Rice
9ab424172d
Update README.md
2021-05-05 09:22:56 -04:00
zricethezav
28fd47e170
Bump version for pre-commit
2021-05-05 09:10:47 -04:00
bplaxco
8250e40a75
Include offenderEntropy in the JSON output ( #549 )
...
* Pass the entropy data back to the Leak struct
Do this to make it easier to tune entropy checks and make decisions in
systems consuming the output.
~ B'ezrat Hashem ~
* Return negative number when entropy not checked
That way you can tell the difference between not checking or an
actual entropy level of 0
~ B'ezrat Hashem ~
* Make sure to handle range checks properly
Make sure to show when something had an entropy returned but was outside
range, or didn't have a hit at all, etc...
~ B'zrat Hashem ~
* Add a few doc strings
Follow the project's conventiona add a comment above the methods
~ B'ezrat Hashem ~
* Update tests and get them to pass
~ B'ezrat Hashem ~
* Remove checked in `.got` files
~ B'ezrat Hashem ~
* Add `*.got` to the `.gitignore`
Make sure the test output files aren't checked-in
~ B'ezrat Hashem ~
2021-05-03 20:22:20 -04:00
AmitHofree
f735c9a5c9
Removed unnecessary backslashes
2021-05-02 15:47:05 +03:00
Pavel Shklovsky
e7553b0168
Add pre-commit support ( #552 )
...
* Add pre-commit support
* Update README.md
2021-04-22 18:37:28 -04:00
Zachary Rice
12d276acd7
Bug 553 global allowlist ( #554 )
...
* add global file check
* rm whitespace
2021-04-22 18:07:07 -04:00
Pavel Shklovsky
e6934bf0a5
Docker-based pre-commit configuration example ( #551 )
...
* Docker-based pre-commit configuration example
* Docker-based pre-commit configuration example
2021-04-21 12:58:03 -04:00
Zachary Rice
6f5ad9dc0b
Update README.md
2021-04-12 11:07:28 -04:00
Zachary Rice
a2019a4782
Update README.md
2021-04-09 14:21:15 -04:00
zricethezav
5d7b7718ec
splitting out github rules and retabbing
2021-04-09 14:07:23 -04:00
Zachary Rice
190877a24b
Pypi GitHub rules ( #546 )
...
* adding pypi and basic azure rules
* Adding new github format
2021-04-08 16:34:08 -04:00
mercuriete and mercuriete
144362b972
docs(Dockerfile): Fix example of usage on Dockerfile ( #545 )
...
* Closes #544
Co-authored-by: mercuriete <mercuriete@gmail.com >
2021-04-08 10:23:03 -04:00
Zachary Rice
d353ac5108
Update README.md
2021-04-06 14:42:44 -04:00
Zachary Rice
a27a08904a
Update README.md
2021-03-05 16:40:07 -05:00
Zachary Rice
5ef4e336ce
Update README.md
2021-03-05 16:39:23 -05:00
zricethezav
78f2c46517
Consistency in options
2021-03-05 16:19:24 -05:00
Kai
bdcb9e33a8
Update SARIF output to return empty array if no results were found ( #530 )
2021-03-05 16:10:53 -05:00
Zachary Rice
6e4e9df55f
stricter regex for github token ( #535 )
2021-03-05 16:10:04 -05:00
Zachary Rice
b3bed5658d
adding recover for patch generation ( #534 )
2021-03-05 16:00:41 -05:00
eddie-northcutt-wfp0
a10ae91ba7
v7.x Update - Add ability to append repo configurations, and user supplied configurations to the specified or default configuration ( #487 )
...
* Update merge configuration changes for Gitleaks 7.x
* Change merge to append, and did some clean up
2021-03-05 15:09:10 -05:00
Zachary Rice
a8dbc7f107
Update README.md
2021-02-25 16:33:24 -05:00
erikaweir
4544156b44
Copy edits to Readme.md ( #529 )
...
* Update README.md
* Update README.md
* Update README.md
2021-02-19 18:01:31 -05:00
Rahul sharma
b52e8c9c7c
Slack Webhook Match ( #527 )
2021-02-19 13:05:25 -05:00
rui
0ce1249b95
chore(deps): bump go to v1.16 ( #525 )
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
2021-02-18 09:14:10 -05:00
Zachary Rice
3932ed6baf
--no-git should report relative path to --path ( #519 )
2021-02-03 13:48:59 -05:00
Zachary Rice
981b636920
gitter chat
2021-02-02 17:27:24 -05:00
Kai
c8e15c731a
Always generate a report if --report is enabled ( #508 )
2021-01-26 07:59:51 -05:00
Zachary Rice
901f932a89
Add file type checking for unstaged commits ( #512 )
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 >
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
2020-12-09 15:55:01 -05:00
Zachary Rice
86cfe0848b
Allow list bugs ( #484 )
...
* fix allowlist bug
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 )
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
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
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
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 >
2020-11-03 15:15:48 -05:00
zricethezav
ede68fd95d
fix off by one
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
2020-09-01 20:48:43 -04:00
Zachary Rice
ad505754fc
Add commits and commits-file option ( #433 )
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
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
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 )
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
2020-06-03 08:51:11 -04:00
Zachary Rice
bdc688dd53
fix whitelist commits, added test ( #390 )
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
Zachary Rice
3e88ac6726
Update README.md
2020-05-20 15:48:53 -04:00
Zeyshi
d0088f6c7c
Update default.go ( #382 )
2020-05-14 17:27:35 -04:00
zricethezav
0d7c18cb39
fixing whitelist repo tests
2020-05-09 11:37:08 -04:00
zricethezav
d0e98416b9
Merge branch 'master' of github.com:zricethezav/gitleaks
2020-05-09 11:24:06 -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
zricethezav
4e59d3bf19
Merge branch 'master' of github.com:zricethezav/gitleaks
2020-05-09 10:54:35 -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
8bd4649b01
Update leaky-repo.toml
2020-05-09 08:53:43 -04:00
zricethezav
a69df84325
Merge branch 'master' of github.com:zricethezav/gitleaks
2020-05-09 08:51:58 -04:00
Marlon Pina Tojal
0faebdefea
Whitelist files not being parsed ( #375 )
...
It seems that there is a typo on the default rules.
2020-05-04 10:56:27 -04:00
Zachary Rice
a728e3abf3
Documentation upgrade ( #374 )
...
* fixing commit latest bug
* updating readme
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2020-04-28 17:43:01 -04:00
zricethezav
e87c62fe72
Merge branch 'master' of github.com:zricethezav/gitleaks
2020-04-23 11:23:46 -04:00
Zachary Rice
4801818e3d
fixing commit latest bug ( #365 )
2020-04-05 11:36:37 -04:00
zricethezav
b4a0577786
fixing commit latest bug
2020-04-05 11:31:22 -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
Zachary Rice
11dcb44e41
bump to go 1.14 and alpine to 3.11 ( #363 )
2020-04-05 09:38:27 -04:00
Prabhu Subramanian
af0df6ea2c
Added gosec scan ( #311 )
2020-04-05 09:38:10 -04:00
Zachary Rice
9db91442b3
ignoring config when using custom config ( #362 )
2020-04-04 14:49:54 -04:00
Zachary Rice
9d76070806
Update README.md
2020-03-25 11:22:32 -04:00
Zachary Rice
2fa580f1bb
fix the empty repo org scan error ( #358 )
2020-03-20 22:44:17 -04:00
Zach Stone
c6f15b768e
Improve default pattern configuration ( #356 )
...
* Add GCP, fix Mailgun format, and loosen format for other keys (don't require quotes)
* Add more match cases to generic credential pattern
* Fix quotation for valid toml
* Update tests
2020-03-20 21:14:30 -04:00
Zachary Rice
779937ca87
Update README.md
2020-03-06 18:59:03 -05:00
Zachary Rice
731856e974
Update README.md
2020-03-06 18:55:24 -05:00
Zachary Rice
baf54631c7
Update README.md
2020-03-06 18:43:40 -05:00
zricethezav
3e760d7fed
updating help message
2020-03-02 20:24:22 -05: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
dae5c142d7
Fix host clone auth ( #350 )
...
* trying auth fix
* fixing github private user auth and donate msg
* formatting
* go fmt...
2020-02-29 13:30:08 -05:00
Zachary Rice
8e8873286e
Update leaky-repo.toml
2020-02-29 13:19:55 -05:00
Zachary Rice
6693cbdde3
Update README.md
2020-02-27 09:29:52 -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
Alexander Curtiss
01d73028f8
Fixed bug where the repo name was removed on a user or org audit. ( #344 )
2020-02-26 14:42:44 -05:00
Dmitry Ivanov
862f1203ed
Minor formatting fix ( #330 )
2020-02-25 18:24:27 -05:00
Zachary Rice
581e81c16e
Update README.md
2020-02-25 17:39:41 -05:00
Zachary Rice
6c166c9530
Update README.md
2020-02-25 17:32:40 -05:00
Zachary Rice
4181ede6cd
Update FUNDING.yml
2020-02-25 11:55:18 -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
Zachary Rice
2810eccc82
Merge pull request #329 from zricethezav/bug/commit-scan
...
Bug/commit scan
2020-02-01 11:38:02 -05:00
zricethezav
baff419091
removing hooks
2020-02-01 11:23:11 -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
Zachary Rice
d8ddb9630a
Merge pull request #327 from zricethezav/bug/timeoutcancel
...
Adding timeout check in context select so we dont log erroneously
2020-01-24 18:16:59 -05:00
zricethezav
1537eeb5fa
Adding timeout check in context select so we dont log erroneously
2020-01-24 18:07:16 -05:00
Zachary Rice
1a492537dd
Merge pull request #325 from zricethezav/bug/timeoutcancel
...
defer cancel in audit
2020-01-23 18:52:56 -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
Zach Rice
7b48cadf6d
fixing version loading in makefile
2020-01-22 20:42:14 -05:00
Zachary Rice
6eab8a7a0a
Update README.md
2020-01-22 20:00:27 -05:00
Zachary Rice
c6d14e5b7d
Merge pull request #323 from zricethezav/bug/fix-go-module
...
fixing modules, adding v3 in path
2020-01-22 18:10:23 -05:00
zricethezav
ce95cafd54
fixing modules, adding v3 in path
2020-01-22 10:21:00 -05:00
Zachary Rice
4024faceab
Merge pull request #322 from zricethezav/exclude-forks
...
exclude-forks gitlab and github
2020-01-19 12:41:07 -05:00
zricethezav
1afa931248
exclude-forks gitlab and github
2020-01-19 12:35:52 -05:00
Zachary Rice
2474c39311
Merge pull request #321 from zricethezav/depth
...
reimplementing depth feature
2020-01-19 12:17:42 -05:00
zricethezav
f6460a7365
reimplementing depth feature
2020-01-19 12:14:14 -05:00
Zachary Rice
b47e00858e
Merge pull request #320 from zricethezav/bug/manager-ptr
...
bug/manager-ptr
2020-01-19 11:56:29 -05:00
zricethezav
b200a13c8d
bug fix: use manager pointers instead of value for gitleaks hosts... this was causing an issue with metadata logging
2020-01-19 11:51:52 -05:00
Zachary Rice
e6fabdbb31
Merge pull request #319 from zricethezav/repo-timeout
...
Repo timeout
2020-01-19 11:48:57 -05:00
Zachary Rice
cdd654eab7
pr template
2020-01-19 10:17:08 -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
Zachary Rice
e75693b131
Update feature_request.md
2020-01-12 12:22:54 -05:00
Zachary Rice
3cd14d4696
Update bug_report.md
2020-01-12 12:22:14 -05:00
Zachary Rice
d29cc9892c
Update bug_report.md
2020-01-12 12:21:33 -05:00
Zachary Rice
d996882f4e
Update bug_report.md
2020-01-12 12:20:44 -05:00
Zachary Rice
17b6aa856d
Update issue templates
2020-01-12 11:07:45 -05:00
Zachary Rice
c21a9cf121
Merge pull request #317 from zricethezav/feature/commit-range
...
Adding commit range feature via 'commit-to' and 'commit-from' options
2020-01-11 17:01:53 -05:00
zricethezav
d3c4342c15
Updating README
2020-01-11 16:58:59 -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
Zachary Rice
24844002de
Update README.md
2020-01-03 16:15:54 -05:00
Zachary Rice
593edeae21
Update README.md
2019-12-24 10:03:02 -06:00
Zachary Rice
6df770d261
Merge pull request #313 from zricethezav/bug/docker-update
...
adding docker push support again to Make and fixed a go vet nit
2019-12-24 09:13:01 -06:00
zach rice
4f0c9dcede
adding docker push support again to Make and fixed a go vet nit
2019-12-17 20:44:20 -05:00
Zachary Rice
52425a8ca9
Merge pull request #307 from pegasd/add_pkcs8_key_support
...
Add support for PKCS8 key
2019-12-07 19:33:54 -05:00
Zachary Rice
454acebe5a
Merge pull request #303 from petegallagher/host-base-url
...
Adding baseurl flag to allow self-hosted GitLab/GitHub servers
2019-12-05 10:32:52 -05:00
Peter Gallagher
6fcf91e934
Removing logging of git client errors as these are now returned in main.go
2019-12-05 15:22:18 +00:00
Peter Gallagher
f89b8f2b29
Return errors for failed host clients
2019-12-05 12:11:46 +00:00
Zachary Rice
648a7ba577
Merge pull request #304 from chapeupreto/patch-1
...
fix typo
2019-12-04 14:47:12 -05:00
Zachary Rice
7c5594c39d
Merge pull request #305 from zricethezav/limit-leak-len
...
Limit leak len
2019-12-04 14:46:36 -05:00
Zachary Rice
274e8212a6
adding license
2019-12-04 08:48:37 -05:00
Eugene Piven
36c6ddaf86
Add support for PKCS8 key
2019-12-03 20:24:33 +03:00
zach rice
15ed72bc09
updating test data
2019-12-01 21:33:40 -05:00
zach rice
ace8de93a9
limit leak len to 200 characters
2019-12-01 21:30:40 -05:00
Rod Elias
45a4c0a284
fix typo
2019-12-01 17:10:26 -03:00
Peter Gallagher
c5e1e8abc0
Adding baseurl flag to allow self-hosted GitLab/GitHub servers
2019-12-01 10:49:32 +00:00
Zachary Rice
ef38b69c39
Merge pull request #302 from petegallagher/whitelist-gitleaks.toml
...
Update default whitelist to include gitleaks.toml
2019-11-30 09:44:23 -06:00
Zachary Rice
ac6bde9996
Merge pull request #296 from petegallagher/private-key
...
Update asymmetric private key regex
2019-11-30 09:41:35 -06:00
Zachary Rice
23568cc0ba
Merge pull request #295 from petegallagher/sendgrid
...
Adding regex for SendGrid API keys
2019-11-30 09:41:10 -06:00
Zachary Rice
e61c2cfae7
Merge pull request #301 from petegallagher/AuditUncommitted
...
Fix repo-config and file whitelist for AuditUncommitted function
2019-11-30 09:40:24 -06:00
Peter Gallagher
38e0b11995
Fix test data for AuditUncommitted
2019-11-29 10:22:02 +00:00
Peter Gallagher
31903d1a80
Update default whitelist to include gitleaks.toml
2019-11-29 10:14:03 +00:00
Peter Gallagher
3655284b57
Fix test data for AuditUncommitted
2019-11-29 10:07:56 +00: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
Peter Gallagher
77f2fdd09a
Update asymmetric private key regex
2019-11-25 15:59:40 +00:00
Peter Gallagher
dba1ef6104
Adding regex for SendGrid API keys
2019-11-25 15:49:47 +00:00
Zachary Rice
725da55905
Merge pull request #289 from zricethezav/fix/3.0.2
...
recover on panic in patch generation, full filepath for report, versi…
2019-11-23 09:56:27 -05: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
Zachary Rice
c559fdbf04
Merge pull request #287 from chenrui333/go-1.13.4
...
Bump golang and alpine to latest
2019-11-17 13:41:43 -06:00
Rui Chen
e2ac47cd06
Bump alpine to v3.10
2019-11-17 14:37:04 -05:00
Rui Chen
8ef16d9efb
Bump golang to v1.13.4
2019-11-17 14:36:37 -05:00
Zachary Rice
b6f726654e
Merge pull request #286 from zricethezav/v3.0.1
...
V3.0.1
2019-11-17 12:12:54 -06:00
zach rice
8cbb84c50f
fixing tests
2019-11-17 11:56:16 -06: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
c6934f5eab
updating readme
2019-11-15 13:52:05 -06:00
zach rice
f8c054b879
gotta log the reponame on cloned repos
2019-11-15 13:35:34 -06:00
Zachary Rice
ad2a64c82b
Merge pull request #285 from zricethezav/v3
...
metadata sync
2019-11-15 13:26:46 -06:00
zach rice
9e0028fe73
Merge branch 'master' of github.com:zricethezav/gitleaks into v3
2019-11-15 13:22:18 -06:00
zach rice
dfbd01a980
sync bug w/ timings
2019-11-15 13:22:03 -06:00
Zachary Rice
86737955de
Merge pull request #281 from zricethezav/v3
...
V3
2019-11-14 07:38:34 -05:00
zach rice
7f0b027486
changing ret err to warning for owner-path scan
2019-11-13 20:03:51 -05:00
zach rice
4d04ea079f
fixing test data
2019-11-12 22:32:15 -05:00
zach rice
6e1c41b536
more examples
2019-11-12 22:17:56 -05:00
zach rice
275232f8c8
examples and more tests
2019-11-12 20:08:17 -05:00
zach rice
c8f9560aa3
adding pretty print option
2019-11-12 18:18:51 -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
41ef2a8cd2
rm hooks from test repos
2019-11-10 18:35:07 -05:00
zach rice
d8acd1354f
no more automatic deploys... doing it manually from now on
2019-11-10 17:18:52 -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
Zachary Rice
f3360cbf66
Create FUNDING.yml
2019-10-13 10:39:08 -04:00
Zachary Rice
065b621604
Merge pull request #262 from siemens/feat/relax-repo-config
...
feat(repo-config): do not fail if no repo-config is available
2019-09-08 16:59:01 -04:00
Roger Meier
fd87df475c
feat(repo-config): do not fail if no repo-config is available
2019-09-08 20:49:29 +02:00
Zachary Rice
c7b6792956
Merge pull request #261 from siemens/fix/sigsegv-repo-config
...
fix(repo-config): avoid SIGSEGV if there is no .gitleaks.toml
2019-09-08 08:57:49 -04:00
Roger Meier
1f2d11003d
fix(repo-config): avoid SIGSEGV if there is no .gitleaks.toml
2019-09-08 13:07:17 +02:00
Zachary Rice
6432f11a6b
Merge pull request #249 from siemens/bufferoverflow-patch-1
...
fix(gitleaks.toml): LinkedIn had a Twitter tag
2019-08-14 10:04:27 -04:00
Roger Meier
7d53fb5951
fix(gitleaks.toml): LinkedIn had a Twitter tag
2019-08-14 11:22:19 +02:00
Zachary Rice
b9aa3ef97d
readme
2019-08-13 08:54:33 -04:00
zach rice
c271497ecb
more generic api key regex
2019-08-02 17:16:20 -05:00
Zachary Rice
e05c4645ac
Merge pull request #246 from hughsaunders/regexes_in_sample
...
Regex whitelist example in sample config
2019-08-02 17:10:28 -05:00
Hugh Saunders
63d8e6e21b
Regex whitelist example in sample config
...
Users looking to the sample config to discover possible options may
not notice that its possible to whitelist by regex. This commit adds
an example to aid discovery.
Related: conjurinc/ops#246
2019-08-02 21:15:15 +01:00
zach rice
5bd59b0d8c
bump
2019-08-01 17:39:09 -05:00
zach rice
464e152783
rm vendor and changelog
2019-08-01 17:15:28 -05:00
Zachary Rice
91406b0c4c
Merge pull request #184 from JCofman/feature/gitlabTokenSupport
...
Feature/gitlab token support
2019-08-01 17:13:44 -05:00
Zachary Rice
04e81270cb
Merge pull request #244 from cfzlp/non-zero-exit-for-leaks
...
Return exit code 1 when leaks are found
2019-08-01 09:50:24 -05:00
Ixl123
69c6695765
resolve merge conflicts
2019-08-01 13:46:51 +02:00
Carlos Pereira
9e0e050f92
Return exit code 1 when leaks are found
2019-07-31 23:21:30 +02:00
Zachary Rice
b2efcf36c8
Merge pull request #241 from manasmbellani/enhance_apikey_rule
...
constants.go(enhance): added an enhancement to include apikey without…
2019-07-15 21:54:16 -05:00
Manas Bellani
ba39abfb19
constants.go(enhance): added an enhancement to include apikey without underscore as another detection for api keys that might be present in source code
2019-07-16 12:31:49 +10:00
zricethezav
f47e1f71ee
cleaner and bounded regex for generic keys and secrets
2019-07-14 15:16:46 -05:00
Zachary Rice
6d980b4eab
Code cleaning ( #240 )
2019-07-10 10:32:51 -05:00
Zachary Rice
ca18e8e2f6
Merge pull request #239 from cfzlp/fix-repo-config
...
Fix updating config from repo-config
2019-07-09 16:52:08 -05:00
Zachary Rice
ec436d7b33
Merge pull request #230 from eargollo/windows-log
...
Fixed Windows output to be consistent with Linux output (colors)
2019-07-09 16:48:54 -05:00
Zachary Rice
38a511f6ba
Merge pull request #236 from dorneanu/fix-commit-option
...
Implemented right way to scan for files in a commit (by using --commit)
2019-07-09 16:42:31 -05:00
Carlos Pereira
15ac1ffdd1
Fix updating config from repo-config
2019-07-07 14:57:57 +02:00
Victor Dorneanu
eb977ba237
Differentiate between commits with parents and commits w/o parents
2019-06-19 14:28:10 +02:00
Victor Dorneanu
9a6b1c3bbb
Implemented right way to scan for files in a commit (by using --commit)
2019-06-18 19:03:54 +02:00
Zachary Rice
95443e742c
Merge pull request #231 from jesmg/master
...
Add new default rules
2019-06-18 07:56:55 -05:00
Jesús Marín
0c94db2d6b
Improve rules
2019-06-18 10:27:50 +02:00
Jesús Marín
9808551eed
Add new default rules
2019-06-17 15:04:33 +02:00
Eduardo Argollo
b6fe5b08d3
Added colors to Windows output making it consistent with Linux one
2019-06-06 11:30:33 -07:00
Eduardo Argollo
5309811a09
Merge remote-tracking branch 'upstream/master'
2019-06-06 11:13:51 -07:00
zach rice
3b6c198715
fixing test
2019-06-02 20:55:24 -05:00
Zachary Rice
57bfa41b33
Merge pull request #224 from eargollo/overwrite-error
...
Solved bug on error being overwritten and not passed to postAudit, closes #223
2019-06-02 17:53:05 -05:00
Zachary Rice
474266c0b5
Merge pull request #226 from eargollo/windows-test
...
Adapt test message to run tests in Windows
2019-06-02 17:49:26 -05:00
Eduardo Argollo
c891470344
Merge pull request #1 from eargollo/windows-test
...
Adapt test message to run tests in Windows
2019-05-31 09:56:44 -07:00
Eduardo Argollo
e6004da801
Adapt test message to run tests in Windows
2019-05-31 09:52:21 -07:00
Eduardo Argollo
e18b1a884a
Updating expected error message
2019-05-30 15:11:37 -07:00
Eduardo Argollo
faeb0914b2
Solving error on authentication
2019-05-30 15:09:45 -07:00
Eduardo Argollo
d6578df998
Solved bug on error being overwritten and not passed to postAudit, closes #223
2019-05-28 15:35:10 -07:00
Zachary Rice
f010513d17
Merge pull request #222 from martelo/modify-single-commit-audit
...
Modify single commit audit
2019-05-28 17:00:13 -05:00
Cassio Berra
d4be9602e3
Removing other unnecessary references to opts.Commit
2019-05-18 01:24:18 +00:00
Cassio Berra
7676690697
Audit single commit without iterating through all commits
2019-05-18 01:02:46 +00:00
Zachary Rice
f4b9b6d0b3
Merge pull request #204 from luispollo/fix-repo-path-logging
...
Fix logging of repo paths
2019-05-06 10:00:27 -05:00
Luis Pollo
7a3d155675
Fix logging of repo paths
2019-05-06 08:53:02 -05:00
Zachary Rice
68b6388ef7
Merge pull request #202 from MaxymVlasov/docs/improve_examples
...
Add more examples and improve README structure
2019-04-30 11:30:31 -05:00
MaxymVlasov
547e9768ec
Add more examples and improve README structure
2019-04-30 18:08:58 +03:00
Zachary Rice
8608cf5b48
Merge pull request #198 from theoretick/patch-1
...
Update README - formatting fixes
2019-04-19 10:34:46 -05:00
Lucas Charles
a08ddedb88
Update README - formatting fixes
2019-04-19 08:28:33 -07:00
Zachary Rice
398366a615
Merge pull request #196 from zricethezav/v2.0.0
...
V2.0.0
2019-04-16 19:00:12 -05:00
zach rice
7dfa3f2b48
last updates?
2019-04-16 18:13:24 -05:00
zach rice
2e7325ce03
adding some more tests during lunch
2019-04-16 12:04:00 -05:00
zach rice
cb74386ef0
working on filetype filtering
2019-04-13 16:48:57 -05:00
zach rice
87d6c588a6
removing validating config, already handled
2019-04-13 14:09:16 -05:00
zach rice
df8a2d35a8
cleaning up
2019-04-13 13:50:14 -05:00
zach rice
c4da547503
fmt
2019-04-13 13:12:58 -05:00
zach rice
7bd55e33b5
working tests out
2019-04-13 12:30:00 -05:00
zach rice
256ace38d7
workin on new filters
2019-04-11 18:06:18 -05:00
zach rice
4c20d5d85c
bumping version
2019-03-30 15:29:52 -05:00
Zachary Rice
ac43c67a47
Merge pull request #190 from zricethezav/bug/singleCommit
...
Bug/single commit
2019-03-30 15:24:42 -05:00
zach rice
d2d68a7e44
fixing commit target bug
2019-03-30 15:19:31 -05:00
zach rice
27aee19a35
Merge branch 'master' of github.com:zricethezav/gitleaks
2019-03-29 19:41:33 -05:00
Zachary Rice
2a6bd1636f
Merge pull request #189 from zricethezav/debt/breakout
...
Debt/breakout
2019-03-29 19:27:54 -05:00
zach rice
7b82e29e7e
updating readme
2019-03-29 19:23:28 -05:00
zach rice
4fd2f06a0d
rm vendor and updating dockerfile
2019-03-29 19:12:28 -05:00
zach rice
8016dffe18
more travis
2019-03-29 18:52:38 -05:00
zach rice
10004da36f
travis version
2019-03-29 18:46:45 -05:00
zach rice
633e06a7c7
updating travis
2019-03-29 18:39:52 -05:00
zach rice
660350c9b1
gofmt
2019-03-29 18:11:01 -05:00
zach rice
9122aa6cf4
updating changelog
2019-03-29 18:09:34 -05:00
zach rice
56c89866a2
spliting up email and author
2019-03-29 18:04:49 -05:00
zach rice
f9be4e543a
working on coverage
2019-03-29 15:54:42 -05:00
zach rice
042b82e2af
more test work
2019-03-29 15:02:25 -05:00
zach rice
9176896742
getting testing there
2019-03-29 13:02:59 -05:00
zach rice
4ea0c66bec
making good progress on tests
2019-03-28 21:28:16 -05:00
zach rice
ae4542abf0
working on tests now
2019-03-28 13:13:26 -05:00
zach rice
ac14d347de
more refactoring
2019-03-28 10:42:43 -05:00
zach rice
c2143c5843
repoDescriptor->repoInfo
2019-03-28 08:06:38 -05:00
zach rice
e79ffc6ae8
go mod and even more work
2019-03-27 17:26:27 -05:00
zach rice
a56c2341cf
Merge branch 'master' of github.com:zricethezav/gitleaks
2019-03-26 16:11:12 -05:00
zach rice
1c14586cde
main.go, need to work on tests next
2019-03-26 16:06:43 -05:00
zach rice
2b995fda44
init
2019-03-26 13:57:55 -05:00
Zachary Rice
5d68b48af3
Update README.md
2019-03-21 19:31:26 -05:00
Zachary Rice
f90a00b564
Update README.md
2019-03-20 20:36:11 -05:00
Ixl123
4bc7c13310
Merge branch 'master' of https://github.com/zricethezav/gitleaks
2019-03-08 14:44:56 +01:00
Ixl123
771055fd59
add changelog and format go code
2019-03-08 14:38:47 +01:00
Jacob Cofman
75c70bf804
try this
2019-03-06 23:31:15 +01:00
Zachary Rice
c5f34a6704
Update README.md
2019-03-06 08:45:30 -06:00
Zachary Rice
463871a307
Update README.md
2019-03-06 08:43:45 -06:00
Zachary Rice
fa1080d066
Update README.md
2019-02-16 10:31:27 -06:00
Zachary Rice
52cfad1d08
Update CHANGELOG.md
2019-02-06 20:06:20 -06:00
Zachary Rice
9e294f5910
Merge pull request #179 from zricethezav/single-commit
...
Single commit
2019-02-06 20:04:54 -06:00
zach rice
9f8326de56
updating changelog and readme
2019-02-06 19:56:02 -06:00
zach rice
79c3f99165
fixing tests
2019-02-06 19:48:17 -06:00
zach rice
d4925443c8
workin on tests
2019-02-06 19:20:52 -06:00
zach rice
fa27d32bfe
ref is not ordered... so the depth option is wack
2019-02-06 18:36:05 -06:00
zach rice
230a52e3e3
reworking logic
2019-02-06 17:50:55 -06:00
zach rice
15dedda59a
single commit and bumping go-git version
2019-02-06 09:26:41 -06:00
Zachary Rice
3b45fb91e3
Update README.md
2019-01-21 18:18:57 +01:00
Zachary Rice
f378319395
Merge pull request #174 from zricethezav/revert-169-add_support_for_branch
...
Revert "Add support for scanning single branch"
2019-01-13 17:17:49 -06:00
Zachary Rice
98173b3aa6
Revert "Add support for scanning single branch"
2019-01-13 17:13:36 -06:00
Zachary Rice
36340c8f2f
Merge pull request #169 from AdamKobi/add_support_for_branch
...
Add support for scanning single branch
2019-01-13 10:20:37 -06:00
Adam Kobi
77b6d90a16
Merge branch 'master' into add_support_for_branch
2019-01-13 13:58:07 +02:00
Adam Kobi
6b3bd46fa8
added tests for scanning single branch and non-existing branch
2019-01-13 13:55:01 +02:00
Zachary Rice
8485f88158
Update README.md
2019-01-11 15:35:29 -06:00
Zachary Rice
d2baa9e675
jk i am prepared. no more games
2019-01-06 19:57:46 -06:00
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
Adam Kobi
432c76a9d9
added support for scanning only single remote branch
2018-12-29 13:10:39 +02:00
Adam Kobi
1cdf315bfa
Merge pull request #1 from zricethezav/master
...
update upstream
2018-12-29 02:24:01 +02: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
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 >.<
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
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
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
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
Zachary Rice
c50187559b
Merge pull request #145 from camaya/update-report-commit-message
...
Remove break lines in commit messages
2018-11-06 08:31:49 -06:00
boris
c2cf6327c2
adjusted perPage; minor fixes
2018-11-06 15:29:10 +02:00
boris
1ea773ddfb
support self hosted GitLab server
2018-11-06 15:10:12 +02: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
Zachary Rice
60267523e9
Merge pull request #144 from zricethezav/fix/files
...
readding default whitelist
2018-11-05 18:18:36 -06:00
zach rice
8153da6e9c
readding default whitelist
2018-11-05 18:13:50 -06:00
Zachary Rice
5f6fb388ec
Merge pull request #141 from zricethezav/feature/default-all
...
removing branch from report
2018-11-03 11:37:21 -05:00
zach rice
ba49396755
updating tests
2018-11-03 11:34:07 -05:00
zach rice
40240cb5ee
removing branch from report
2018-11-03 11:31:18 -05:00
Zachary Rice
bba926693e
Merge pull request #140 from zricethezav/feature/default-all
...
Feature/default all
2018-11-03 11:29:20 -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
Zachary Rice
35a59746df
Merge pull request #135 from camaya/add-commit-date-to-leaks
...
Add commit date to leaks
2018-10-28 12:21:45 -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
Zachary Rice
695449d73d
Merge pull request #134 from zricethezav/fix/threads
...
Fix/threads
2018-10-27 19:25:40 -05:00
zach rice
6bad1e7194
updating readme
2018-10-27 19:20:11 -05:00
zach rice
77dec1461b
better language
2018-10-27 19:19:07 -05:00
Zachary Rice
14d77f59d4
Merge pull request #133 from akerl/fix/slack-tokens
...
fix slack token format
2018-10-27 16:13:17 -05:00
Les Aker
afb598cf15
update defaultConfig with new Slack regex
2018-10-27 14:29:25 -04:00
Les Aker
b4c6fe92e0
fix slack token format
2018-10-27 10:56:41 -04:00
Zachary Rice
f50577be1c
Merge pull request #131 from zricethezav/feature/default-regex
...
Feature/default regex
2018-10-26 14:04:15 -05: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
Zachary Rice
95ee2cc30e
Merge pull request #128 from r--w/patch-1
...
Telegram bot API token
2018-10-26 13:26:08 -05:00
Zachary Rice
79a35f0c27
Merge branch 'master' into patch-1
2018-10-26 13:25:58 -05:00
Zachary Rice
7a021cda9e
Merge pull request #129 from harston/patch-1
...
Add PGP header
2018-10-26 13:25:23 -05:00
Zachary Rice
447f7a04cb
Merge branch 'master' into patch-1
2018-10-26 13:24:55 -05:00
Zachary Rice
e5b62cbc7c
Merge pull request #130 from harston/patch-2
...
Add slack token
2018-10-26 13:24:01 -05:00
Paweł Gawinek
6739a34f74
Add slack token
...
Add Slack token from https://api.slack.com/docs/token-types
#hactoberfest #greywizard
2018-10-26 10:36:04 +02:00
Paweł Gawinek
e502bf29de
Add PGP header
...
Add PGP private key header
#hactoberfest #greywizard
2018-10-26 10:23:26 +02:00
Radoslaw Wesolowski
51b504bf99
Telegram bot API token
...
Format is described here: https://core.telegram.org/bots/api#authorizing-your-bot
#hactoberfest #greywizard
2018-10-26 09:22:18 +02:00
Zachary Rice
107d582e7b
Merge pull request #127 from zricethezav/fix/ssh-logic
...
fixing default ssh logic
2018-10-25 12:38:14 -05:00
zach rice
ea42ed406f
fixing default ssh logic
2018-10-25 12:27:50 -05:00
Zachary Rice
c869812875
Merge pull request #125 from ziyaddin/patch-1
...
Fix typos in docs
2018-10-24 17:06:43 -05:00
Zachary Rice
4f7ce9c195
Merge pull request #126 from zricethezav/fix/concurrency
...
Fix/concurrency
2018-10-24 16:56:01 -05:00
zach rice
847687a637
fixing test. travis doesnt have rsa id
2018-10-24 16:48:34 -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
e288db29a8
fixing tests
2018-10-24 12:40:05 -05:00
zach rice
98aeee9b1d
fixing everything
2018-10-24 12:28:54 -05:00
Ziyaddin Sadigov
45a2aa8495
Fix typos in changelog
2018-10-24 21:19:40 +04:00
Ziyaddin Sadigov
4b350987a1
Fix typos in contributing.md
2018-10-24 21:11:29 +04:00
Ziyaddin Sadigov
3b2b754fe5
Fix typos in readme
2018-10-24 21:06:08 +04: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
Zachary Rice
87d916fc24
Merge pull request #123 from zricethezav/update/whitelist-repo
...
whitelist repo update
2018-10-23 16:38:17 -05:00
zach rice
21b59fab5d
whitelist repo update
2018-10-23 16:34:36 -05:00
Zachary Rice
9272e1e556
Merge pull request #122 from zricethezav/feature/entropy-range
...
entropy ranges
2018-10-22 18:55:51 -05:00
zach rice
0a51dabb17
entropy ranges
2018-10-22 18:51:01 -05:00
Zachary Rice
8c1cee4e00
Merge pull request #116 from keirans/documentation_updates
...
Documentation enhancements
2018-10-21 10:23:48 -05:00
Keiran Sweet
4d5315e2ca
Documentation updates
2018-10-21 17:12:00 +11:00
zach rice
88cc9bb363
committing to master nbd.... stupid version
2018-10-20 17:28:42 -05:00
Zachary Rice
80e41ee14c
Merge pull request #118 from zricethezav/feature/github-pr
...
Feature/GitHub pr
2018-10-20 18:27:27 -04: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
zach rice
4b11f87f80
poc seems to work fine w token auth
2018-10-19 15:58:25 -04:00
Zachary Rice
923dcf0311
Merge pull request #117 from camaya/update-help-option
...
Update help option
2018-10-17 08:42:20 -04:00
Cristhian Amaya
8896cf66cd
Update help option
...
* Show program usage when no arguments are provided
* Exit program after the -h or --help options are used
2018-10-15 17:10:44 +02:00
zach rice
df133ccaf8
version boss strikes AGAIN
2018-10-12 19:01:42 -05:00
Zachary Rice
23cd693d71
Merge pull request #114 from zricethezav/report
...
report filetype enforcement, time to audit
2018-10-12 18:53:38 -05:00
zach rice
524d81fde9
durafmt
2018-10-12 18:43:03 -05:00
zach rice
d387f528c4
update lint
2018-10-12 18:22:33 -05:00
zach rice
dcda26578b
report filetype enforcement, time to audit
2018-10-12 17:01:24 -05:00
Zachary Rice
28639d3a49
Merge pull request #112 from zricethezav/wl-commit
...
look at prev commit too
2018-10-10 12:19:21 -05:00
zach rice
19e23c9cbe
look at prev commit too
2018-10-10 12:16:31 -05:00
Zachary Rice
160015b872
Merge pull request #111 from zricethezav/fix-wl-commit
...
rm commit count log
2018-10-10 09:50:28 -05:00
zach rice
abdf2c47f0
cl update
2018-10-10 09:43:01 -05:00
zach rice
8536f16ceb
rm commit count log
2018-10-10 09:41:49 -05:00
Zachary Rice
6862c13bf7
Merge pull request #109 from zricethezav/depth
...
Depth
2018-10-09 21:13:29 -05:00
zach rice
9939c638ec
better log
2018-10-09 21:07:49 -05:00
zach rice
ed3a512b4b
commit depth option
2018-10-09 21:01:56 -05:00
Zachary Rice
7c988c927d
Merge pull request #107 from camaya/feature/add-entropy-checks
...
Add option to check string entropy
2018-10-09 18:46:21 -05:00
zach rice
bde9af44ea
merging, adding comments, updating flag description
2018-10-09 18:42:09 -05:00
Zachary Rice
eee4d05642
Merge pull request #108 from camaya/fix-commit-option
...
Fix commit option
2018-10-09 16:18:54 -05:00
Cristhian Amaya
9144594d77
Fix commit option
...
The --commit option was being ignored becase the Close() function doesn't stop
the iterator.
According to the documentation:
https://godoc.org/gopkg.in/src-d/go-git.v4/plumbing/object#FileIter.ForEach
an ErrStop error should be send to stop it.
2018-10-09 16:49:16 +02:00
Cristhian Amaya
1cb15242fd
Add option to check string entropy
...
Strings with high entropy have a good probability of being a secret.
2018-10-08 16:08:04 +02:00
Zachary Rice
08498600d1
Merge pull request #106 from zricethezav/exclude-fork
...
exclude fork
2018-10-07 18:42:42 -05:00
zach rice
88c0c7779b
exclude fork
2018-10-07 18:39:17 -05:00
Zachary Rice
67454d109e
Merge pull request #105 from zricethezav/wlrepo
...
Wlrepo
2018-10-07 18:26:18 -05:00
zach rice
ce603c73b4
sample config opt
2018-10-07 18:19:43 -05:00
zach rice
55218fc8f8
whitelist repos
2018-10-07 18:09:10 -05:00
Zachary Rice
5d81c650e8
Merge pull request #104 from zricethezav/comments
...
Comments
2018-10-06 19:31:14 -05:00
zach rice
0726209172
maintenance
2018-10-06 19:27:54 -05:00
zach rice
bfec8aca51
working on better comments
2018-10-05 22:55:19 -05:00
Zachary Rice
a9b30edb06
Resource fix ( #103 )
...
* bumping version
2018-10-04 10:11:52 -05:00
Zachary Rice
cc6d698e63
Resource fix ( #102 )
...
* no more dangling goroutines
2018-10-04 09:47:18 -05:00
Zachary Rice
2ba97d0fa3
fixing audit repo bug ( #101 )
...
* fixing audit repo bug
* bumping version
2018-10-02 12:34:05 -05:00
Zachary Rice
d299b5aa7f
Exitcode ( #100 )
...
* additional exit code, some more cleaning
* bump version
2018-10-02 09:52:18 -05:00
Zachary Rice
0a209b60a5
typo
2018-10-02 07:59:11 -05:00
Zachary Rice
fe8c6271f2
panic plan ( #99 )
2018-10-01 22:44:25 -05:00
zach rice
42fb085684
pls contribute
2018-10-01 21:54:31 -05:00
Zachary Rice
3faec00bf9
Max go ( #98 )
...
* default max go, cleaning up for orgs
* bump changelog
* bumping version
2018-10-01 21:21:19 -05:00
Zachary Rice
93669f1ee8
Csv ( #96 )
...
* refactoring github audits, adding csv support
* working on tests
* test passing
* bumping version
* updating readme
2018-09-29 22:11:40 -05:00
Zachary Rice
fad98cbde2
Single commit repo ( #95 )
...
* supporting repos with one commit
2018-09-26 14:28:22 -05:00
Zachary Rice
8eb28cbb4c
Merge pull request #91 from zricethezav/audit_branch
...
test branch opt, bump changelog
2018-09-12 19:33:46 -05:00
zach rice
9dc9a8e62a
bump version
2018-09-12 19:23:20 -05:00
zach rice
e6caef0d94
test branch opt, bump changelog
2018-09-12 19:17:04 -05:00
Zachary Rice
5e289ed0cc
Merge pull request #88 from Fabse333/master
...
Added Support for branches
2018-09-12 12:41:00 -05:00
Fabian Helfert
d99588fe19
Fixed failure when Branch option is ommited
2018-08-23 14:07:25 +02:00
Fabian Helfert
a7ccb7a9d1
Added Support for branches
2018-08-23 13:50:32 +02:00
Zachary Rice
f32abb921d
Merge pull request #87 from nenadstojanovikj/patch-1
...
Update description to reflect regex
2018-08-22 09:41:28 -05:00
Nenad Stojanovikj
e8851c1f99
Update description to reflect regex
2018-08-21 21:08:44 +02:00
Zachary Rice
f3a8359ac0
Merge pull request #86 from zricethezav/patch-err-check
...
Patch err check
2018-08-11 15:33:39 -04:00
zach rice
829e8fed8c
up check to warning msg
2018-08-11 14:30:34 -05:00
zach rice
c7e3605bff
bump patch
2018-08-11 14:29:23 -05:00
zach rice
c1774b1596
err check on patch
2018-08-11 14:27:51 -05:00
Zachary Rice
35710a7428
Merge pull request #85 from eripa/github-enterprise-support
...
GitHub Enterprise support + improved error handling. Fixes #84
2018-08-10 15:59:52 -04:00
Eric Ripa
c7ba4d8bbf
Update README and CHANGELOG with GitHub URL/Enterprise support detailed
2018-08-10 06:59:04 -07:00
Eric Ripa
5585e10933
Change error handling in getRepo functions
...
Instead of returning an empty list of repositories
and an error if any cloning operation fails, simply
store the error in the Repo instance and always
return all repos.
Then later on check for errors during the audit step.
By having this approach we don't prematurely exit
the scanning if there are problems during cloning,
such as if a repository is empty and fails to clone.
2018-08-09 11:31:29 -07:00
Eric Ripa
23d5bf0b51
Add simply TCP check during optsGuard to verify the given github URL
2018-08-09 11:30:55 -07:00
Eric Ripa
b1c7a84fae
Add initial support for GitHub Enterprise custom URLs
2018-08-09 10:04:41 -07:00
Zachary Rice
60801b336a
Opt version ( #80 )
...
* version opt
* change-log
2018-07-22 20:16:09 -05:00
Zachary Rice
851ea3df3c
anime
2018-07-22 10:03:01 -05:00
Zachary Rice
d482577e47
copyleft
2018-07-21 14:19:28 -05:00
zricethezav
94e7a25b5b
removing log formatting
2018-07-21 14:01:39 -05:00
zricethezav
45d94fa013
fixing commit patch order and report commit
2018-07-21 14:00:33 -05:00
zricethezav
b4e69ecd37
clone and results logs, some additional comments
2018-07-21 13:29:32 -05:00
zricethezav
1c2820b4f1
Merge branch 'master' of github.com:zricethezav/gitleaks
2018-07-21 11:15:19 -05:00
zricethezav
215c3f6623
Simple slogan
2018-07-21 11:15:05 -05:00
Zachary Rice
39b162cadf
Merge pull request #78 from zricethezav/default_mem
...
Updating Makefile, making in-memory default, adding disk option
2018-07-21 10:34:58 -05:00
zricethezav
e0c717c3a3
Updating Makefile, making in-memory default, adding disk option
2018-07-21 09:09:39 -05:00
zricethezav
ebb9be999f
update sample docker cmd
2018-07-20 21:51:56 -05:00
Zachary Rice
5fbb15be62
Merge pull request #77 from arjunyel/patch-2
...
Twitter typo
2018-07-20 21:46:53 -05:00
Zachary Rice
8922546a00
Merge pull request #76 from arjunyel/patch-1
...
Update Go docker version
2018-07-20 21:45:59 -05:00
arjunyel
38b7fc3cfb
Twitter typo
2018-07-20 21:34:00 -05:00
arjunyel
8a76e0af27
Update Go docker version
2018-07-20 21:17:49 -05:00
Zachary Rice
1f80d14f3f
Gitleaks v1.0.0 ( #75 )
...
major bump
2018-07-20 20:02:52 -05:00
zricethezav
91eb014f17
add gitleaks-ci
2018-05-16 14:11:23 -05:00
Zachary Rice
6122092224
Merge pull request #68 from zricethezav/travis-update
...
env vars strike again
2018-05-11 09:45:35 -05:00
zricethezav
55102bd461
env vars strike again
2018-05-11 09:41:50 -05:00
Zachary Rice
9927c0bd4b
Merge pull request #67 from zricethezav/travis-update
...
need docker service...whoops
2018-05-11 09:28:54 -05:00
zricethezav
ba6f0c4d88
need docker service...whoops
2018-05-11 09:25:21 -05:00
Zachary Rice
a52abe0b31
Merge pull request #66 from zricethezav/travis-update
...
let travis handle docker builds
2018-05-11 09:22:58 -05:00
zricethezav
b1ae2a02fe
let travis handle docker builds
2018-05-11 09:20:51 -05:00
Zachary Rice
f7fca41beb
Merge pull request #61 from zricethezav/feature/build_script
...
Feature/build script
2018-03-12 18:07:31 -05:00
zricethezav
a257e9ed2e
more platforms, update readme
2018-03-12 18:06:08 -05:00
zricethezav
c51944c4d2
build script
2018-03-12 17:58:07 -05:00
zricethezav
8e59bf766a
rm some silly logic, better comments
2018-03-12 17:50:02 -05:00
zricethezav
fa498287b9
example of external regex
2018-03-11 19:01:36 -05:00
zricethezav
c77421d077
rm changelog.. just look at released, updated donation addrs
2018-03-11 18:55:16 -05:00
Zachary Rice
fe977ea857
Merge pull request #57 from zricethezav/feature/external-regex
...
external repo file support
2018-03-10 13:34:57 -06:00
zricethezav
ccef3680d5
external repo file support
2018-03-10 13:32:05 -06:00
Zachary Rice
2c80ad5ea9
Merge pull request #56 from zricethezav/deps
...
Deps
2018-03-05 17:34:03 -06:00
zricethezav
f5ae1ae88b
rm old deps
2018-03-05 17:32:06 -06:00
zricethezav
f653ab71c2
deps for refactor
2018-03-05 17:30:29 -06:00
zricethezav
aec926df5e
extra arg print
2018-03-04 20:45:13 -06:00
zricethezav
7bbf07e7e6
chdir for local repo mode
2018-03-04 20:42:25 -06:00
Zachary Rice
9f3ae4efa0
Merge pull request #55 from zricethezav/feature/usability
...
Feature/usability
2018-03-04 20:29:00 -06:00
zricethezav
2fd1d44e0a
actually fixing table
2018-03-04 20:26:41 -06:00
zricethezav
e2060e9cd3
fixing table
2018-03-04 20:23:04 -06:00
zricethezav
ce44961e6e
README again
2018-03-04 20:16:04 -06:00
zricethezav
078b951a43
removing some options
2018-03-04 18:51:09 -06:00
zricethezav
b6b3e768dc
working on readme
2018-03-04 18:36:27 -06:00
zricethezav
2fadf219d9
more coverage
2018-03-03 21:44:04 -06:00
Zachary Rice
ae71ce6ea0
Merge pull request #54 from keirans/enable_dsa_check
...
Adding DSA key check to regex list
2018-03-03 21:43:22 -06:00
Keiran Sweet
041c11d9fc
Adding DSA key check to regex list
2018-03-03 16:00:43 +11:00
zricethezav
c019a9d80d
guard rm temp dirs
2018-03-02 17:19:11 -06:00
zricethezav
0ed0489c2d
linting, more testing, cleaning
2018-03-02 16:55:02 -06:00
Zachary Rice
2d27ce7cdf
Merge pull request #53 from ryan-copperleaf/master
...
Fix unintentional values in character classes
2018-03-02 16:04:27 -06:00
Ryan O’Hara
032c616f63
Fix unintentional values in character classes
2018-03-01 21:15:57 -08:00
zricethezav
36c31bf181
working on tests
2018-03-01 22:35:13 -06:00
zricethezav
d85c8d8abd
support for running gitleaks w no args
2018-03-01 19:14:20 -06:00
zricethezav
39c9cb617c
cleaning up path logic for clones and reports, local repos are supported now
2018-03-01 19:08:58 -06:00
zricethezav
648ae701bf
Merge branch 'feature/usability' of https://github.com/zricethezav/gitleaks into feature/usability
2018-03-01 15:15:05 -06:00
zricethezav
9dd624affa
options and repo testing
2018-03-01 00:01:13 -06:00
Zachary Rice
17efe94f95
Merge pull request #51 from petermbenjamin/update-dockerfile
...
Update Dockerfile
2018-02-28 23:36:33 -06:00
zricethezav
25736d115f
some barebones tests
2018-02-28 23:25:04 -06:00
zricethezav
0d75136c1c
structured logs
2018-02-28 22:02:03 -06:00
zricethezav
7919e15a65
my, things have changed...
2018-02-28 19:36:21 -06:00
zricethezav
faca0e14d9
refactoring after actually learning some go patterns
2018-02-27 21:56:46 -06:00
Peter Benjamin
59f1f02480
Update Dockerfile
...
Simplified Dockerfile.
Here's what changed and why:
- No need for `RUN mkdir -p $PROJECT` because `WORKDIR` automatically creates directories if they don't exist.
- No need to `RUN git clone https://github.com/zricethezav/gitleaks.git . ` since we're building the container image locally and we have the project files available locally. Therefore, no need to reach out to the internet to re-download it.
- just `COPY` all local files into the current working directory (which is `/go/src/.../.../gitleaks`) in the container.
- No need to `RUN apk update && apk upgrade && apk add --no-cache bash git openssh`, because `apk update` and `apk upgrade` cache files locally in the container, thus leading to bloated image size.
- Just simply do `apk add --no-cache ...` to install dependencies without writing any cache locally. This is equivalent to `apk update && apk upgrade && apk add ... && rm -rf /var/logs/apk/cache/*`
- Removed `WORKDIR /app` as there is no need for it. The compiled binary is placed in `/usr/bin/`.
2018-02-27 11:54:09 -08:00
zricethezav
c8880ed911
rm extra newline
2018-02-26 22:29:26 -06:00
zricethezav
095279d60c
no leaks no report
2018-02-26 22:26:40 -06:00
Zachary Rice
91c39935e4
Update README.md
2018-02-25 22:01:13 -06:00
Zachary Rice
d972792aa1
s/o to the gf for the grammar
2018-02-25 20:47:50 -06:00
Zachary Rice
9d544f474a
format
2018-02-25 20:18:35 -06:00
Zachary Rice
01c54e55e7
readme update
2018-02-25 20:15:03 -06:00
Zachary Rice
4b21bbef2e
Merge pull request #47 from Shawn-Smith/Stopwords-lowercase
...
Make stopwords lowercase
2018-02-25 17:15:02 -06:00
Zachary Rice
9e87d94ce7
Merge pull request #40 from equinox/unknown-typo-fix
...
fix typo of "unknown"
2018-02-25 16:38:01 -06:00
Zachary Rice
27ab66827d
Merge pull request #48 from zricethezav/develop
...
Develop
2018-02-25 16:22:42 -06:00
zricethezav
87ee13fb3d
deps
2018-02-25 16:18:26 -06:00
zricethezav
4b4fa00b69
Merge branch 'master' of https://github.com/zricethezav/gitleaks into develop
2018-02-25 16:13:42 -06:00
zricethezav
1cecd5e090
updated readme, better logging
2018-02-25 16:10:44 -06:00
Shawn Smith
93380ad86a
Do lowercase checks in stopwords
...
This reduces the number of loops we need to do when checking.
2018-02-25 14:15:19 -05:00
zricethezav
c104ff9157
file, author, repourl, time, commitmsg to leakElem
2018-02-25 11:49:15 -06:00
Zachary Rice
73387cbc53
Merge pull request #45 from plutov/feat/add_gcp_regexp
...
#35 Add GCP service account key check: PKCS8
2018-02-25 09:19:27 -06:00
Alex Pliutau
bc0dab1c56
#35 Add GCP service account key check: PKCS8
2018-02-25 20:10:57 +07:00
Zachary Rice
7554b51ad5
Merge pull request #42 from Shawn-Smith/Regex-Fix
...
Case insensitive regex matching
2018-02-24 22:10:50 -06:00
Shawn Smith
224ba41968
Case insensitive regex matching
...
This changes the current regexs to ones that aren't case sensitive.
2018-02-24 17:02:59 -05:00
zricethezav
1b06f1a0dc
init 0.2.0 work
2018-02-24 15:46:24 -06:00
Equinox
a63f5059f2
fix typo of "unknown"
2018-02-24 22:50:47 +13:00
Zachary Rice
9393f06d19
Merge pull request #39 from zricethezav/since_commit
...
Since commit
2018-02-23 18:10:08 -06:00
zricethezav
c11171f47d
the damned README
2018-02-23 18:06:19 -06:00
zricethezav
801254f97e
messages go back in, will add reporting support s00n
2018-02-23 18:02:29 -06:00
zricethezav
7a0ce07f99
--since sh-sh-sha
2018-02-23 17:58:02 -06:00
Zachary Rice
d16d584efa
Merge pull request #34 from zcong1993/master
...
reduce docker image size
2018-02-23 10:22:14 -06:00
zcong1993
780123c5be
add docker WORKDIR
2018-02-23 12:08:52 +08:00
zcong1993
c4738ef26f
reduce docker image size
2018-02-23 11:52:41 +08:00
zricethezav
2186f22999
more info on output and in jsonish format
2018-02-22 20:37:57 -06:00
zricethezav
aa15ded5c4
rm config
2018-02-22 19:53:38 -06:00
zricethezav
9f694531b2
just kidding on the yaml
2018-02-22 19:52:46 -06:00
Zachary Rice
1669939147
Merge pull request #33 from zricethezav/conf_yaml
...
Conf yaml
2018-02-22 19:35:38 -06:00
zricethezav
e3c7b3a9eb
yml dep
2018-02-22 19:07:47 -06:00
zricethezav
1e250f1a14
sprucing up the joint
2018-02-22 19:06:04 -06:00
zricethezav
6f5079c193
yamlizing
2018-02-22 17:36:36 -06:00
Zachary Rice
0fa6a79a25
Merge pull request #26 from devnixs/master
...
Added support for docker
2018-02-22 15:56:43 -06:00
Zachary Rice
970bbca757
Merge pull request #31 from zricethezav/private_scan
...
supporting private repos... again, removing go-git and deps
2018-02-22 15:38:55 -06:00
zricethezav
b9657155b2
supporting private repos... again, removing go-git and deps
2018-02-22 15:26:29 -06:00
Zachary Rice
f58caef16d
Merge pull request #29 from loicbourgois/patch-1
...
Update README.md
2018-02-22 13:48:57 -06:00
Loïc Bourgois
c0797d115a
Update README.md
2018-02-22 20:35:23 +01:00
zricethezav
744ff2f876
deps
2018-02-22 11:36:23 -06:00
Zachary Rice
4137d3cfc0
Merge pull request #20 from anant2614/go-git_for_clones
...
use go-git for cloning
2018-02-22 11:35:16 -06:00
Anant Pathak
4a7875bb38
remove unnecessary operation to get current working directory
2018-02-22 22:58:00 +05:30
Anant Pathak
14c2bb6ff2
use appRoot for current working directory
2018-02-22 22:49:09 +05:30
Anant Pathak
44df20e1f3
Merge branch 'master' into go-git_for_clones
2018-02-22 20:12:10 +05:30
Anant Pathak
4ffbdde578
remove log and cleanup on fail
2018-02-22 20:10:36 +05:30
Raphael ATALLAH
1d3d9b5983
Added line break
2018-02-22 09:02:31 +01:00
Raphael ATALLAH
5d995c05a2
Updated Readme : added docker doc
2018-02-22 09:01:37 +01:00
Raphael ATALLAH
d9d87410e2
Added dockerfile
2018-02-22 08:59:59 +01:00
Anant Pathak
fa1afa3e0c
use go-git for cloning
2018-02-21 15:41:06 +05:30
zricethezav
ad53f2ce34
Merge branch 'master' of https://github.com/zricethezav/gitleaks
2018-02-20 13:25:58 -06:00
zricethezav
3d2fd8a020
more readme
2018-02-20 13:24:49 -06:00
Zachary Rice
668fceb048
Merge pull request #17 from Joel-Costamagna/patch-1
...
corrected mistake to match usage section
2018-02-20 10:56:29 -06:00
Joël COSTAMAGNA
5114689a34
corrected mistake to match usage section
2018-02-20 11:54:58 -05:00
Zachary Rice
eae4b49966
Merge pull request #16 from zricethezav/add-license-1
...
Create LICENSE 📄
2018-02-20 09:44:23 -06:00
Zachary Rice
d70dded366
Create LICENSE
2018-02-20 09:40:43 -06:00
zricethezav
864e1eeedc
readme update
2018-02-19 21:59:48 -06:00
Zachary Rice
73ea4dfe3b
Merge pull request #13 from zricethezav/stopwords
...
Stopwords
2018-02-19 19:02:10 -06:00
zricethezav
c0bf19fc44
updating readme and options
2018-02-19 19:00:30 -06:00
zricethezav
bc26e979c5
shannon entropy for base64 and hex, more options
2018-02-19 18:56:07 -06:00
zricethezav
8f352bd840
yay no deps, using shannon entropy straight up, stop words
2018-02-19 17:41:15 -06:00
zricethezav
d465c3d2f1
init stopword work
2018-02-19 16:26:18 -06:00
Zachary Rice
840e9e873f
Merge pull request #12 from zricethezav/fix/conc_factor
...
default conc limit too high... whoops
2018-02-19 14:35:41 -06:00
zricethezav
5c1bb93068
default conc limit too high... whoops
2018-02-19 14:32:35 -06:00
zricethezav
2533ea6661
updated readme and org target
2018-02-18 20:50:45 -06:00
Zachary Rice
a67910ec00
Merge pull request #11 from zricethezav/org_user_scan
...
Org user scan
2018-02-18 20:43:39 -06:00
zricethezav
825d434c66
concurrency option functional
2018-02-18 17:58:53 -06:00
zricethezav
5d924ecc53
logging
2018-02-18 17:28:36 -06:00
zricethezav
a77b6e4f8b
init org user scan work
2018-02-18 12:03:46 -06:00
Zachary Rice
c8181dee1b
Merge pull request #10 from zricethezav/travis
...
travis yaml
2018-02-17 11:46:15 -06:00
zricethezav
4ea51fc98d
go 1.9 and travis badge
2018-02-17 11:44:07 -06:00
zricethezav
cba584bb18
travis yaml
2018-02-17 11:37:39 -06:00
Zachary Rice
159f5d6185
Merge pull request #9 from apostov/master
...
Code cleanup and badges
2018-02-17 10:51:44 -06:00
Anton Postov
a9c5d5a953
Code cleanup and badges
2018-02-17 10:51:20 +03:00
Zachary Rice
cf4c157141
Merge pull request #5 from bestform/support-different-urls
...
Generate the local repoName
2018-02-15 10:56:53 -06:00
Matthias Derer
9c1ea12d77
Generate the local repoName
...
To support other URLs than standard github URLs, the repoName
is now being generated based on the given URL.
Currently supported are formats for HTTP, SSH and local paths.
Fixes #4
2018-02-15 15:54:02 +01:00
Zachary Rice
a705784673
Merge pull request #3 from arjunyel/master
...
Lint Markdown and Go Dep
2018-02-09 11:04:18 -05:00
arjunyel
2d3bcc7e91
Markdown lint and Go Dep
2018-02-08 23:24:38 -06:00
zricethezav
e0cfd0b5ca
Merge branch 'master' of https://github.com/zricethezav/gitleaks
2018-02-07 13:01:37 -06:00
zricethezav
6eba1bb24e
update regex test
2018-02-07 13:01:26 -06:00