Commit 1fa4ab6
committed
refactor: use betterleaks ruleset for secret detection
Per review feedback, replace the hand-maintained vendor token patterns
with the betterleaks default ruleset (same author as gitleaks). Detection
now runs on the whole hunk, so multi-line secrets such as PEM private key
blocks are fully redacted, including blocks cut off by the hunk boundary.
Components of composite rules (e.g. AWS key ID + secret access key) are
redacted as well. The generic keyword-assignment patterns and the YAML
redactPatterns/redactKeywords options are unchanged.1 parent 6f8a0ce commit 1fa4ab6
2,205 files changed
Lines changed: 663978 additions & 283602 deletions
File tree
- docs
- search
- vendor
- dario.cat/mergo
- github.com
- Masterminds/semver/v3
- STARRY-S/zip
- andybalholm/brotli
- flate
- matchfinder
- betterleaks/betterleaks
- config
- detect
- assets
- codec
- internal
- color
- exprruntime
- httpclient
- sigv4
- validate
- words
- logging
- regexp
- internal
- report
- sources
- scm
- version
- bodgit
- plumbing
- sevenzip
- internal
- aes7z
- bcj2
- bra
- brotli
- bzip2
- deflate
- delta
- lz4
- lzma2
- lzma
- pool
- util
- zstd
- windows
- dlclark/regexp2
- syntax
- dsnet/compress
- bzip2
- internal/sais
- internal
- errors
- prefix
- expr-lang/expr
- ast
- builtin
- checker
- nature
- compiler
- conf
- file
- internal
- deref
- ring
- optimizer
- parser
- lexer
- operator
- utils
- patcher
- types
- vm
- runtime
- fatih/semgroup
- gitleaks/go-gitdiff
- gitdiff
- go-sprout/sprout
- deprecated
- internal
- helpers
- runtime
- registry
- backward
- checksum
- conversion
- crypto
- encoding
- env
- filesystem
- maps
- numeric
- random
- reflect
- regexp
- semver
- slices
- std
- strings
- time
- uniqueid
- sprigin
- golang/protobuf
- proto
- google
- go-github/v72
- github
- go-querystring
- query
- uuid
- h2non/filetype
- matchers
- isobmff
- types
- hashicorp
- go-cleanhttp
- go-retryablehttp
- go-version
- golang-lru/v2
- internal
- simplelru
- klauspost
- compress
- flate
- fse
- gzip
- huff0
- internal
- cpuinfo
- godebug
- le
- race
- snapref
- s2
- zip
- zlib
- zstd
- internal/xxhash
- pgzip
- launchdarkly
- api-client-go/v15
- json-patch
- mattn
- go-colorable
- go-isatty
- go-runewidth
- mholt/archives
- mikelolasagasti/xz
- minio/minlz
- internal/race
- mitchellh
- copystructure
- reflectwalk
- nwaples/rardecode/v2
- olekukonko/tablewriter
- pelletier/go-toml/v2
- internal
- characters
- danger
- tracker
- unstable
- pierrec/lz4/v4
- internal
- lz4block
- lz4errors
- lz4stream
- xxh32
- pkoukk/tiktoken-go
- rrethy/ahocorasick
- rs/zerolog
- internal
- cbor
- json
- shurcooL
- githubv4
- graphql
- ident
- internal/jsonutil
- sorairolake/lzip-go
- spf13
- afero
- mem
- cast
- internal
- cobra
- pflag
- stretchr/testify
- assert
- yaml
- require
- ulikunitz/xz
- internal
- hash
- xlog
- lzma
- go.yaml.in/yaml/v3
- go4.org
- readerutil
- golang.org/x
- crypto
- argon2
- bcrypt
- blake2b
- chacha20
- cryptobyte
- asn1
- curve25519
- hkdf
- internal/poly1305
- pbkdf2
- scrypt
- sha3
- ssh
- agent
- knownhosts
- exp
- constraints
- maps
- slices
- mod/semver
- net
- context
- internal/socks
- proxy
- oauth2
- internal
- sync
- errgroup
- semaphore
- singleflight
- sys
- cpu
- unix
- windows
- text
- cases
- encoding/unicode
- internal
- language
- compact
- tag
- language
- unicode/norm
- tools
- cmd/stringer
- godoc
- util
- vfs
- go
- ast
- edge
- inspector
- gcexportdata
- packages
- types
- objectpath
- typeutil
- internal
- aliases
- event
- core
- keys
- label
- gcimporter
- gocommand
- packagesinternal
- pkgbits
- stdlib
- typeparams
- typesinternal
- versions
- google.golang.org
- appengine
- internal
- base
- datastore
- log
- remote_api
- urlfetch
- urlfetch
- protobuf
- encoding
- prototext
- protowire
- internal
- descfmt
- descopts
- detrand
- editiondefaults
- encoding
- defval
- messageset
- tag
- text
- errors
- filedesc
- filetype
- flags
- genid
- impl
- order
- pragma
- set
- strs
- version
- proto
- reflect
- protodesc
- protoreflect
- protoregistry
- runtime
- protoiface
- protoimpl
- types
- descriptorpb
- gofeaturespb
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | | - | |
11 | 8 | | |
12 | | - | |
13 | 9 | | |
14 | | - | |
15 | 10 | | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
18 | 13 | | |
19 | | - | |
20 | | - | |
| 14 | + | |
| 15 | + | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| 19 | + | |
24 | 20 | | |
25 | | - | |
| 21 | + | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
29 | | - | |
| 25 | + | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
| 46 | + | |
39 | 47 | | |
40 | | - | |
41 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
45 | 57 | | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
48 | 67 | | |
49 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
50 | 72 | | |
| 73 | + | |
51 | 74 | | |
| 75 | + | |
| 76 | + | |
52 | 77 | | |
53 | 78 | | |
54 | 79 | | |
| 80 | + | |
| 81 | + | |
55 | 82 | | |
| 83 | + | |
56 | 84 | | |
57 | | - | |
58 | | - | |
| 85 | + | |
| 86 | + | |
59 | 87 | | |
| 88 | + | |
60 | 89 | | |
61 | 90 | | |
62 | 91 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
73 | 101 | | |
74 | 102 | | |
75 | 103 | | |
| |||
0 commit comments