Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Yeah, the masker is just a string replace over the log output. It has no idea where a word came from, so any secret that's a common word ends up as The easy way out is to keep the key alias as a variable instead of a secret (Settings > Secrets and variables > Actions > Variables tab) and read it as The docs mention this too, in a way: they say not to use structured data as a secret value, since the masker only matches exact strings. Short or common values have the opposite problem and get matched way too often. |
|
This is an interesting security concern. GitHub could improve this by introducing a Configurable Secret Masking feature. A practical implementation could include:
This would reduce false positives while preserving protection against accidental secret exposure. It would also help prevent secret masking from unexpectedly revealing information about repository configuration. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Other
Discussion Details
I have a repository secret that has the value
upload. The word "upload" isn't really a secret, it's the name of a key in a keystore. But the keystore and the keystore password are secrets, and it was easier to keep all three together — I didn't expect any problem from that.But since adding that secret, my Actions logs, including the publicly-viewable versions that only show step names, are full of references to
actions/***-artifact@v7, because Actions runs on my repo now consider "upload" a secret word that needs to be censored at all costs.The goal is noble, but in this case I think it's an error of judgment. By censoring the secret value in a place that has a well-known value that couldn't possibly have been derived from the secret, it's leaking the fact that I have a secret with that value to the world. Harmless this time, but maybe not every time.
All reactions