Composer leaks contents of tokens configured as GitHub OAuth tokens
1–10 of 29 posts
Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#2Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#3This does not surprise me.
Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#4Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#5I was the reporter on this one. If you have Github Actions in your organization, disable them immediately if you're unsure which version of composer your Github Actions run.
Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#6The title suggests it is a Github issue but really it is https://github.com/composer/composer no? I would edit the title for clarity.
Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#7I was the reporter on this one. If you have Github Actions in your organization, disable them immediately if you're unsure which version of composer your Github Actions run.
> GitHub Actions' built-in secret masker matches registered values as exact substrings. When the exception message is rendered by Symfony Console it may wrap, embed in In BaseIO.php line N: framing, or interleave with ANSI control sequences. So the masker does not redact, and the plaintext token reaches the log.
What does this log rendering look like such that the token from that code snippet becomes interleaved enough to not be a substring match?
I'm not familiar with composer/Symfony but I would expect something like:
Line 34: Foo bar
Line 34: Foo barRe: Composer leaks contents of tokens configured as GitHub OAuth tokens
#8I was the reporter on this one. If you have Github Actions in your organization, disable them immediately if you're unsure which version of composer your Github Actions run.
Not immediately clear to me, is this limited to ghu_xxx type OAUTH tokens? And it's only relevant for PHP projects that use composer in GHA?
Re: Composer leaks contents of tokens configured as GitHub OAuth tokens
#9GHA have always been a PITA for any serious DevOps; it's quite clear they were designed to integrate in 7 lines of code and then tell everyone who complains that they're doing it wrong. This does not surprise me.
When the GH action YAML is just invoking shell scripts, I find it quite pleasant to use