Introducing v8.0.0 changes (#701)

* Introducing v8.0.0 changes
This commit is contained in:
Zachary Rice authored and GitHub committed 2021-11-22 10:43:51 -06:00
1 parent 780fb4a8f1
commit 93f292c3df
224 files changed
+4424 -5485

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
This is the basic testdata repo
This is the first commit
-1
View File
@@ -1 +0,0 @@
adding another aws secrets
-1
View File
@@ -1 +0,0 @@
ref: refs/heads/master
-13
View File
@@ -1,13 +0,0 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = git@github.com:zricethezav/basic.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Binary file not shown.
-3
View File
@@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
-3
View File
@@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
@@ -1 +0,0 @@
0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067479 -0500 update by push
@@ -1,2 +0,0 @@
x�ŽA
Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö ®><x�ŸÊº.␍:g­ŠÀè¼Wì8"*:uH�gouê9ZOA…1šWÉ␍¤OȪ$‘Ž9zG�N:iE-õŽ ¿Û\*Ü9Íp[’Àù[÷©×W-­ä•—ç)•õ6�ÅÐã0À=¢Ùé~±É_²áiZò8—6ï þl°IªÒ6óXMr
@@ -1,2 +0,0 @@
x]�Ks‚@„söWxãÝ] šªTE#"1eJy\¨}L\“,øëI©gú›žn¦r6œ�ñM"‘Pçì4|K{¾\ØöÊœE?GºDAC¢P]c|¬âГÂQUL‚æ3
öW�¥b©*éºÓ‰g2âI(ÉÖBBèç"03ž}ƒ£î&‰^@ÙÛs||çéqì:HqâËNOOÌ�‡í:¦é±u�âпvœé®²cI÷¦ó”Ðüñ›2„ДëŽD@LðLD£3DÆÖY ḺÑG9ó„V¥ìsȲ¼Ü�F•†"£)Üײ­óJ‰6¯º]¯¾åÅ…j]ç…Ð�ÐÐô¢à–çi׊Ö:¡œƒÖÉ´½Ý|ãÎÝÝëj·ô}ËçÛ—gÛøæ~ªÿÃk�ª"<”ÙÊÞº£�µ]Ú¾3b/ÍþíüýÞoìÈ|¤¶Ž§
@@ -1 +0,0 @@
xќЋKjГ0@іЦ)ж-3ъY‚Rr†,»УЊЗ‰А¶Њў,ТУЧgикБѓOЪ¶ХЦеЛиЄА4sRси§L<Ў€°%л­u”іF•М,љЈtЭM3ыbЖ)§EШ•АYX“шСN‹Pvґ�тЏЦб§ИnUѕ~ы‰~=zmЯJ]?ҐmЯ@СFВDsЪsqиїbSж№оwxлzАSҐлxВRW5о‹L°
-1
View File
@@ -1 +0,0 @@
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
@@ -1 +0,0 @@
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
-13
View File
@@ -1,13 +0,0 @@
# testdata copied from https://github.com/Yelp/detect-secrets/blob/master/test_data/each_secret.py
red_herring = 'DEADBEEF'
id = 'YW1pYWx3YXlzZ2VuZXJhdGluZ3BheWxvYWRzd2hlbmltaHVuZ3J5b3JhbWlhbHdheXNodW5ncnk'
base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'
hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'
basic_auth = 'http://username:whywouldyouusehttpforpasswords@example.com'
aws_access_key = 'AKIAIOSFODNN7EXAMPLE'
aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
# another aws secrets
aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'
-4
View File
@@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
+24
View File
@@ -0,0 +1,24 @@
package main
import "fmt"
func main() {
var a = "initial"
fmt.Println(a)
var b, c int = 1, 2
fmt.Println(b, c)
var d = true
fmt.Println(d)
var e int
fmt.Println(e)
// opps I added a secret at line 20
awsToken := "AKIALALEMEL33243OLIA"
f := "apple"
fmt.Println(f)
}
+2
View File
@@ -0,0 +1,2 @@
# test
This is a repo used for testing gitleaks
+7
View File
@@ -0,0 +1,7 @@
package api
import "fmt"
func PrintHello() {
fmt.Println("hello")
}
+1
View File
@@ -0,0 +1 @@
removing secret from foo package
+1
View File
@@ -0,0 +1 @@
2e1db472eeba53f06c4026ae4566ea022e36598e branch 'main' of github.com:gitleaks/test
+1
View File
@@ -0,0 +1 @@
ref: refs/heads/main
+1
View File
@@ -0,0 +1 @@
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587
@@ -6,8 +6,8 @@
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = git@github.com:zricethezav/basic.git
url = git@github.com:gitleaks/test.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
[branch "main"]
remote = origin
merge = refs/heads/master
merge = refs/heads/main
File renamed without changes.
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
+13
View File
@@ -0,0 +1,13 @@
0000000000000000000000000000000000000000 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896329 -0500 clone: from github.com:gitleaks/test.git
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896362 -0500 checkout: moving from main to remove-secrets
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 906335481df9a4b48906c90318b4fac76b67fe73 Zach Rice <zricer@protonmail.com> 1635896426 -0500 commit: load token via env var
906335481df9a4b48906c90318b4fac76b67fe73 a122b33c6bad3ee54724f52f2caad385ab1982ab Zach Rice <zricer@protonmail.com> 1635896518 -0500 commit: add api package
a122b33c6bad3ee54724f52f2caad385ab1982ab a122b33c6bad3ee54724f52f2caad385ab1982ab Zach Rice <zricer@protonmail.com> 1635896543 -0500 checkout: moving from remove-secrets to api-pkg
a122b33c6bad3ee54724f52f2caad385ab1982ab 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896644 -0500 checkout: moving from api-pkg to main
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635896648 -0500 pull origin main: Fast-forward
2e1db472eeba53f06c4026ae4566ea022e36598e 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635896716 -0500 checkout: moving from main to foo
2e1db472eeba53f06c4026ae4566ea022e36598e 491504d5a31946ce75e22554cc34203d8e5ff3ca Zach Rice <zricer@protonmail.com> 1635896886 -0500 commit: adding foo package with secret
491504d5a31946ce75e22554cc34203d8e5ff3ca f1b58b97808f8e744f6a23c693859df5b5968901 Zach Rice <zricer@protonmail.com> 1635896931 -0500 commit: removing secret from foo package
f1b58b97808f8e744f6a23c693859df5b5968901 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635897009 -0500 checkout: moving from foo to main
2e1db472eeba53f06c4026ae4566ea022e36598e f1b58b97808f8e744f6a23c693859df5b5968901 Zach Rice <zricer@protonmail.com> 1635897062 -0500 checkout: moving from main to foo
f1b58b97808f8e744f6a23c693859df5b5968901 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635897508 -0500 checkout: moving from foo to main
+1
View File
@@ -0,0 +1 @@
0000000000000000000000000000000000000000 a122b33c6bad3ee54724f52f2caad385ab1982ab Zach Rice <zricer@protonmail.com> 1635896543 -0500 branch: Created from HEAD
+3
View File
@@ -0,0 +1,3 @@
0000000000000000000000000000000000000000 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635896716 -0500 branch: Created from HEAD
2e1db472eeba53f06c4026ae4566ea022e36598e 491504d5a31946ce75e22554cc34203d8e5ff3ca Zach Rice <zricer@protonmail.com> 1635896886 -0500 commit: adding foo package with secret
491504d5a31946ce75e22554cc34203d8e5ff3ca f1b58b97808f8e744f6a23c693859df5b5968901 Zach Rice <zricer@protonmail.com> 1635896931 -0500 commit: removing secret from foo package
+2
View File
@@ -0,0 +1,2 @@
0000000000000000000000000000000000000000 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896329 -0500 clone: from github.com:gitleaks/test.git
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635896648 -0500 pull origin main: Fast-forward
@@ -0,0 +1,3 @@
0000000000000000000000000000000000000000 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896362 -0500 branch: Created from HEAD
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 906335481df9a4b48906c90318b4fac76b67fe73 Zach Rice <zricer@protonmail.com> 1635896426 -0500 commit: load token via env var
906335481df9a4b48906c90318b4fac76b67fe73 a122b33c6bad3ee54724f52f2caad385ab1982ab Zach Rice <zricer@protonmail.com> 1635896518 -0500 commit: add api package
@@ -0,0 +1 @@
0000000000000000000000000000000000000000 1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 Zach Rice <zricer@protonmail.com> 1635896329 -0500 clone: from github.com:gitleaks/test.git
@@ -0,0 +1 @@
0000000000000000000000000000000000000000 a122b33c6bad3ee54724f52f2caad385ab1982ab Zach Rice <zricer@protonmail.com> 1635896552 -0500 update by push
@@ -0,0 +1 @@
0000000000000000000000000000000000000000 f1b58b97808f8e744f6a23c693859df5b5968901 Zach Rice <zricer@protonmail.com> 1635896935 -0500 update by push
@@ -0,0 +1 @@
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 2e1db472eeba53f06c4026ae4566ea022e36598e Zach Rice <zricer@protonmail.com> 1635896648 -0500 pull origin main: fast-forward
@@ -0,0 +1 @@
xUÌ1 Â0`×ܯ8nJ––.‚ƒƒ:*(8–´\¤´É•$ê þw3 Noxï{Ý$6Ëf1Û~´wF'0øYbF␍ŠœÏTB�p�ÐãND|ƒ*]uŽCÈSÐT •…ªkLÌ>a²Ž#(ûJm–‘®Ö(©ÚsæðÔ´¹]Úëé°=õ÷ô>ð°ú03
@@ -0,0 +1,3 @@
xťŽM
Â0F]çs%™üt
"žÁĄ»I2ˇEŰ”»đôö ®>xĽ_ŞË2w@;śză‘�ءCŚXЧ@‘˛Ö6 5Ź)–ÔĆMÖ&†ĚÎF:l'ĚFÇTHÄŹFFĂ1–äiPüéSmđä4ÁcN×o;¦Ý·V{]žß—T—�`=ŤÁa€łöZ«�»ü«wĺ ˝ľd…}f�u‡ť›úKKś
+2
View File
@@ -0,0 +1,2 @@
# pack-refs with: peeled fully-peeled sorted
1b6da43b82b22e4eaa10bcf8ee591e91abbfc587 refs/remotes/origin/main
+1
View File
@@ -0,0 +1 @@
a122b33c6bad3ee54724f52f2caad385ab1982ab
+1
View File
@@ -0,0 +1 @@
f1b58b97808f8e744f6a23c693859df5b5968901
+1
View File
@@ -0,0 +1 @@
2e1db472eeba53f06c4026ae4566ea022e36598e
+1
View File
@@ -0,0 +1 @@
a122b33c6bad3ee54724f52f2caad385ab1982ab
+1
View File
@@ -0,0 +1 @@
ref: refs/remotes/origin/main
@@ -0,0 +1 @@
a122b33c6bad3ee54724f52f2caad385ab1982ab
+1
View File
@@ -0,0 +1 @@
f1b58b97808f8e744f6a23c693859df5b5968901
+1
View File
@@ -0,0 +1 @@
2e1db472eeba53f06c4026ae4566ea022e36598e
+27
View File
@@ -0,0 +1,27 @@
package main
import (
"fmt"
"os"
)
func main() {
var a = "initial"
fmt.Println(a)
var b, c int = 1, 2
fmt.Println(b, c)
var d = true
fmt.Println(d)
var e int
fmt.Println(e)
// load secret via env
awsToken := os.Getenv("AWS_TOKEN")
f := "apple"
fmt.Println(f)
}
-3
View File
@@ -1,3 +0,0 @@
This is the basic testdata repo
This is the first commit
-1
View File
@@ -1 +0,0 @@
adding another aws secrets
-1
View File
@@ -1 +0,0 @@
ref: refs/heads/master
-1
View File
@@ -1 +0,0 @@
Unnamed repository; edit this file 'description' to name the repository.
Binary file not shown.
-3
View File
@@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
@@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
@@ -1 +0,0 @@
0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067479 -0500 update by push
@@ -1,2 +0,0 @@
x�ŽA
Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö ®><x�ŸÊº.␍:g­ŠÀè¼Wì8"*:uH�gouê9ZOA…1šWÉ␍¤OȪ$‘Ž9zG�N:iE-õŽ ¿Û\*Ü9Íp[’Àù[÷©×W-­ä•—ç)•õ6�ÅÐã0À=¢Ùé~±É_²áiZò8—6ï þl°IªÒ6óXMr
@@ -1,2 +0,0 @@
x]�Ks‚@„söWxãÝ] šªTE#"1eJy\¨}L\“,øëI©gú›žn¦r6œ�ñM"‘Pçì4|K{¾\ØöÊœE?GºDAC¢P]c|¬âГÂQUL‚æ3
öW�¥b©*éºÓ‰g2âI(ÉÖBBèç"03ž}ƒ£î&‰^@ÙÛs||çéqì:HqâËNOOÌ�‡í:¦é±u�âпvœé®²cI÷¦ó”Ðüñ›2„ДëŽD@LðLD£3DÆÖY ḺÑG9ó„V¥ìsȲ¼Ü�F•†"£)Üײ­óJ‰6¯º]¯¾åÅ…j]ç…Ð�ÐÐô¢à–çi׊Ö:¡œƒÖÉ´½Ý|ãÎÝÝëj·ô}ËçÛ—gÛøæ~ªÿÃk�ª"<”ÙÊÞº£�µ]Ú¾3b/ÍþíüýÞoìÈ|¤¶Ž§
@@ -1 +0,0 @@
xќЋKjГ0@іЦ)ж-3ъY‚Rr†,»УЊЗ‰А¶Њў,ТУЧgикБѓOЪ¶ХЦеЛиЄА4sRси§L<Ў€°%л­u”іF•М,љЈtЭM3ыbЖ)§EШ•АYX“шСN‹Pvґ�тЏЦб§ИnUѕ~ы‰~=zmЯJ]?ҐmЯ@СFВDsЪsqиїbSж№оwxлzАSҐлxВRW5о‹L°
-1
View File
@@ -1 +0,0 @@
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
@@ -1 +0,0 @@
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
-8
View File
@@ -1,8 +0,0 @@
[[rules]]
description = "Generic Credential"
regex = '''(?i)(dbpasswd|dbuser|dbname|dbhost|api_key|apikey|secret|key|api|password|user|guid|hostname|pw|auth)(.{0,20})?['|"]([0-9a-zA-Z-_\/+!{}/=]{4,120})['|"]'''
tags = ["key", "API", "generic"]
[rules.allowlist]
description = "ignore gitleaks config"
regexes = ['''gitleaks.toml''']
-13
View File
@@ -1,13 +0,0 @@
# testdata copied from https://github.com/Yelp/detect-secrets/blob/master/test_data/each_secret.py
red_herring = 'DEADBEEF'
id = 'YW1pYWx3YXlzZ2VuZXJhdGluZ3BheWxvYWRzd2hlbmltaHVuZ3J5b3JhbWlhbHdheXNodW5ncnk'
base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'
hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'
basic_auth = 'http://username:whywouldyouusehttpforpasswords@example.com'
aws_access_key = 'AKIAIOSFODNN7EXAMPLE'
aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
# another aws secrets
aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'
-3
View File
@@ -1,3 +0,0 @@
SQUARE_OAUTH=sq0csp-QZxqK3fHycIxFsjZ7_HoqRN08qY2by3wLXcfJCfsKEg
GOOGLE_MAPS_KEY=AIzaSyDtz3Di0ZrzeU5ET3UFU0p-xP4bx2FkSrg