From 43e9b95ebecf30af209fbe9bfab4482ea70cf638 Mon Sep 17 00:00:00 2001 From: Andreas Jaggi Date: Tue, 13 Apr 2021 14:12:37 +0200 Subject: [PATCH] Add support for new GitHub authentication token format (#45) https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available/ --- CHANGELOG.md | 1 + tell_me_your_secrets/config.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b615b4..003d9ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - Added `--version` flag to print current version (#43) +- Added support for the new GitHub authentication token format (#45) ## v2.2.1 (2020-03-11) diff --git a/tell_me_your_secrets/config.yml b/tell_me_your_secrets/config.yml index 153984f..c2baa0d 100644 --- a/tell_me_your_secrets/config.yml +++ b/tell_me_your_secrets/config.yml @@ -430,6 +430,21 @@ signatures: - part: 'contents' regex: '(?i:github(.{0,20})?)[''\"][0-9a-zA-Z]{35,40}[''\"]' name: 'Github Key' + - part: 'contents' + regex: 'ghp_[A-Za-z0-9_]{35,255}' + name: 'GitHub Personal Access Token' + - part: 'contents' + regex: 'gho_[A-Za-z0-9_]{35,255}' + name: 'GitHub OAuth Access Token' + - part: 'contents' + regex: 'ghu_[A-Za-z0-9_]{35,255}' + name: 'GitHub App user-to-server token' + - part: 'contents' + regex: 'ghs_[A-Za-z0-9_]{35,255}' + name: 'GitHub App server-to-server token' + - part: 'contents' + regex: 'ghr_[A-Za-z0-9_]{35,255}' + name: 'GitHub App refresh token' - part: 'contents' regex: '(?i)heroku(.{0,20})?[''"][0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[''"]' name: 'Heroku API key'