gitlab-secret_detection 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitlab/secret_detection/core/ruleset.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05ed2079c4cbdfe4b79681687fa7ac880ba9af384dbf7143374e009eb6e8eac
|
4
|
+
data.tar.gz: 73f0c96737d1816793c96734541fbe9d1785925fadfa10a622849a74091493f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dd99d867f15ae626ace54f3f30dcc344d4b13d421cbfd61ddefa1afeb6d6f971e6b1700aa789e916eb55d3e76b2b2f956693be42235f28d17b23b9f1ea017bb
|
7
|
+
data.tar.gz: 3788076e7734be035b63bc64ad59d1d3be1303098cd94d0da27f20bbf4569e5250cbc3f57bb33fd99478c5cdeba214174cef40fd7e095a9f04c12015894dd6d2
|
@@ -10,19 +10,20 @@ module Gitlab
|
|
10
10
|
# file path where the secrets ruleset file is located
|
11
11
|
RULESET_FILE_PATH = File.expand_path('gitleaks.toml', __dir__)
|
12
12
|
|
13
|
-
def initialize(path: RULESET_FILE_PATH)
|
13
|
+
def initialize(path: RULESET_FILE_PATH, logger: Logger.new($stdout))
|
14
14
|
@path = path
|
15
|
+
@logger = logger
|
15
16
|
end
|
16
17
|
|
17
18
|
def rules(force_fetch: false)
|
18
19
|
return @rule_data unless @rule_data.nil? || force_fetch
|
19
20
|
|
20
|
-
@rule_data
|
21
|
+
@rule_data = parse_ruleset
|
21
22
|
end
|
22
23
|
|
23
24
|
private
|
24
25
|
|
25
|
-
attr_reader :path
|
26
|
+
attr_reader :path, :logger
|
26
27
|
|
27
28
|
# parses given ruleset file and returns the parsed rules
|
28
29
|
def parse_ruleset
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-secret_detection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- group::secret detection
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-10-
|
13
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grpc
|