zendesk_apps_support 4.21.1 → 4.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a29f66e756650df7c922330343de88ffd9288344
4
- data.tar.gz: 232b452f1b5a006b9c776df416a7a222bd9413bb
3
+ metadata.gz: 9e9b1670d2a13faa843987434944eea54bd13569
4
+ data.tar.gz: 55796dc5a9b33e8d6dbdec5c68067243a6cc367e
5
5
  SHA512:
6
- metadata.gz: 5ae75377e433d10753c6f1be36ef4fcad2d8a4042a01bce3c0f3fb078f01c20c96dfa206510087d417f403306b453a04d49a4ff581ab52ab747faacaf70b8969
7
- data.tar.gz: 4fb70af5b59a5c2c69edcd7a5bcc6fcac08bdf40b7fed711c66eb0a1f4bde2f6a1ba5dcea04043f40426ee37bd1afc63bf3e80898d175a7b30be00864ccf5f5e
6
+ metadata.gz: 60289ba952f35d6a00a70749133b9afa4ea162a09b596dbf72286a90df10f183d476b88aadd8d73776798eb03f0be24b20c98cc96dd1f45689ab51d5d9a02764
7
+ data.tar.gz: cf543dffffc92e21832cb44bda9593c72d6f4acac716017ab8ed0e737b253d30e1b09df4867f4e4f199581bbf90629d6a66f043c8f598dd21c759f7871f5dc53
@@ -4,8 +4,8 @@ module ZendeskAppsSupport
4
4
  module Validations
5
5
  module Secrets
6
6
  SECRET_KEYWORDS = %w[
7
- pass password secret secretToken secret_token auth_key
8
- authKey auth_pass authPass auth_user AuthUser username api_key
7
+ password secret secretToken secret_token auth_key
8
+ authKey auth_pass authPass auth_user AuthUser api_key
9
9
  ].freeze
10
10
 
11
11
  APPLICATION_SECRETS = {
@@ -60,7 +60,8 @@ module ZendeskAppsSupport
60
60
  secret_type: secret_type)
61
61
  end
62
62
 
63
- file.relative_path if contents =~ Regexp.union(SECRET_KEYWORDS)
63
+ match = Regexp.union(SECRET_KEYWORDS).match(contents)
64
+ "#{file.relative_path} ('#{match[0]}...')" if match
64
65
  end.compact
65
66
 
66
67
  return unless compromised_files.any?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.21.1
4
+ version: 4.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-08-05 00:00:00.000000000 Z
14
+ date: 2019-08-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n