We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd7290 commit b3b034dCopy full SHA for b3b034d
src/gitingest/utils/git_utils.py
@@ -5,7 +5,7 @@
5
import re
6
from typing import List, Optional, Tuple
7
8
-GITHUB_PAT_PATTERN = r"^(?:github_pat_|gph_)[A-Za-z0-9_]{36,}$"
+GITHUB_PAT_PATTERN = r"^(?:github_pat_|ghp_)[A-Za-z0-9_]{36,}$"
9
10
11
async def run_command(*args: str) -> Tuple[bytes, bytes]:
@@ -261,6 +261,6 @@ def validate_github_token(token: str) -> None:
261
"""
262
if not re.match(GITHUB_PAT_PATTERN, token):
263
raise ValueError(
264
- "Invalid GitHub token format. Token should start with 'github_pat_' or 'gph_' "
+ "Invalid GitHub token format. Token should start with 'github_pat_' or 'ghp_' "
265
"followed by at least 36 characters of letters, numbers, and underscores."
266
)
0 commit comments