gitlab-secret_detection 0.7.0 → 0.7.1

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: 80258cb775e48f5eb82e756ae321928e7b705bc992729cfb354a65a7e2666027
4
+ data.tar.gz: bd8bcae492885fc6101c495196ee213b6690435f50cf75dd5942e1d0ad528be7
5
5
  SHA512:
6
- metadata.gz: ae963ac226ddab5d154879c078b44581f859232175ecf69269818a0e880368855469f10265a63d408089b5da7d56e37f51a865bbd9efc66ddd5474d1b718af0a
7
- data.tar.gz: ff4c2bff936d88972a1e51563e2f6a0fb61f3c431213058fccae5e7abd18ac72636e37099a0dece9f083424795078bf2b69dd224aa88b27e6752bed1ae9d37ee
6
+ metadata.gz: e0ad041ec8c3a4b3e783719f1bfa043f04dff1c0dc851d85dbacf57061ecbfe36c2383a17169367bf71703558c6ca15b6c80811128af01b889daed8ba5c1eb88
7
+ data.tar.gz: f3bb1f64115c4ace9850810faf59b923243c07c412227ce6dfe451e764841134ee8095fb631c598424aa8b00437dfa19653687518d80154df2c711d173b3051a
@@ -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.7.1
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-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grpc