Repository navigation
Add a Log Filter to Strip Github Tokens - #1147
Merged
Merged
Conversation
luthermonson
force-pushed
the
v3-log-filter-fix
branch
from
May 20, 2026 04:23
2711423 to
a3c3957
Compare
crazywhalecc
approved these changes
May 20, 2026
henderkes
requested changes
May 20, 2026
henderkes
approved these changes
May 20, 2026
Contributor
Author
|
thanks for the help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
if you run a build locally with --debug=true and an env var for GITHUB_USER and GITHUB_TOKEN you'll get some passthru logs which include the bearer token for curl requests to github calls. this was caught with local builds as i have those envvars set for quick gh cli usage and claude noticed the token was getting leaked into /log/spc.output.log
now this was with v2 and v3 tried to add a log filter but overlooked adding the encoded username:token (which is the actual contents of the bearer token) to the filters and sending the passthru logs through the filter and this PR remedies that.
i sent claude through your action logs and it found no leaks so it looks like your tokens havent leaked but you probably need to double check just to be safe. note that this would have leaked through the gha scrubbers as it would have only known to scrub GITHUB_USER and GITHUB_TOKEN and not the b64(user:token).
closes #1144