Skip to content

Commit 9e13f1c

Browse files
committed
fix: Remove debug output for token preview in error handling
1 parent 40bfeac commit 9e13f1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

updater/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ runs:
141141
}
142142
Write-Output "::error::GitHub token contains whitespace at position $position of $tokenLength characters: $charName"
143143
Write-Output "::error::This suggests the token secret may be malformed. Check for extra newlines when setting the secret."
144+
# XXX remove
145+
$preview = $env:GH_TOKEN.Substring(5, 10)
146+
Write-Output "Token around the error: $preview"
144147
exit 1
145148
}
146149

0 commit comments

Comments
 (0)