Skip to content

Commit e4b46b5

Browse files
ryan-williamsclaude
andcommitted
Add debug output for GH_PAT token
Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 205b50c commit e4b46b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lambda_gha/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def main():
2727
token = environ["GH_PAT"]
2828
api_key = environ["LAMBDA_API_KEY"]
2929

30+
# Debug token info (without revealing the actual token)
31+
print(f"GH_PAT length: {len(token)}")
32+
print(f"GH_PAT prefix: {token[:4]}..." if len(token) > 4 else f"GH_PAT too short: {len(token)}")
33+
print(f"GH_PAT has newline: {chr(10) in token or chr(13) in token}")
34+
3035
builder = (
3136
EnvVarBuilder(env)
3237
.update_state("INPUT_DEBUG", "debug")

0 commit comments

Comments
 (0)