diff --git a/lib/patterns/default.rb b/lib/patterns/default.rb index df36139..31ad926 100644 --- a/lib/patterns/default.rb +++ b/lib/patterns/default.rb @@ -3,7 +3,7 @@ # This module contains the default patterns to redact. module Patterns DEFAULT = [ - /ghp_[a-zA-Z0-9]{36,}/, # GitHub Personal Access Token + /ghp_[A-Za-z0-9]{36,}|[0-9A-Fa-f]{40,}/, # GitHub Personal Access Token /github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}/, # GitHub Personal Access Token (fine-grained) /ghs_[a-zA-Z0-9]{36}/ # Temporary GitHub Actions Tokens ].freeze