Skip to content

Commit

Permalink
update regex for PATs
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Nov 13, 2023
1 parent ce84820 commit e73a444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/patterns/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e73a444

Please sign in to comment.