Skip to content

Commit de88d72

Browse files
GrantBirkinobe4
andauthored
Update lib/patterns/default.rb
Co-authored-by: nobe4 <[email protected]>
1 parent a744a5a commit de88d72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/patterns/default.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module Patterns
1111
%r{https://hooks\.slack\.com/services/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{24}}, # Slack webhook
1212
%r{https://hooks\.slack\.com/workflows/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{9,}/[0-9]+?/[a-zA-Z0-9]{24}}, # Slack workflow
1313
/xoxp-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{6,})|xoxb-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})|xoxs-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxa-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxo-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})|xoxa-2-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxr-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxb-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})/, # Slack tokens
14-
/[sb]\.[a-zA-Z0-9]{24,}/, # vault token
14+
/[sbr]\.[a-zA-Z0-9]{24,}/, # vault token for 1.9.x or earlier
15+
/hv[sbr]\.[a-zA-Z0-9]{24,}/, # vault token for 1.10 and later
1516
/rubygems_[0-9a-f]{48}/ # RubyGems token
1617
].freeze
1718
end

0 commit comments

Comments
 (0)