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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff032818993f54b85b958ad43293df4e9112ad20b9d68ab654abf74ebeb778a7
4
- data.tar.gz: e0556ec3bc97e6973bbb6c8ba4e041897eccfbb37e23d4af16ff4fccd4850eb0
3
+ metadata.gz: a05ed2079c4cbdfe4b79681687fa7ac880ba9af384dbf7143374e009eb6e8eac
4
+ data.tar.gz: 73f0c96737d1816793c96734541fbe9d1785925fadfa10a622849a74091493f5
5
5
  SHA512:
6
- metadata.gz: ae963ac226ddab5d154879c078b44581f859232175ecf69269818a0e880368855469f10265a63d408089b5da7d56e37f51a865bbd9efc66ddd5474d1b718af0a
7
- data.tar.gz: ff4c2bff936d88972a1e51563e2f6a0fb61f3c431213058fccae5e7abd18ac72636e37099a0dece9f083424795078bf2b69dd224aa88b27e6752bed1ae9d37ee
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 ||= parse_ruleset
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.7.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-08 00:00:00.000000000 Z
13
+ date: 2024-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grpc