---
title: "Meke on Hey: \"Since hey and bonsai get private keys…\""
description: "Since hey and bonsai get private keys compromised in Github, I wonder whether is good idea to build a package to prevent this errors. 1. Scan in local all you…"
url: "https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"
image: "https://ik.imagekit.io/lens/tr:w-1000,h-1000,q-100/c49bd684a25d14e935902469f6f7469f27f8137d0846a816a0042dc3b25b3e36_YVTsbn3xy.webp"
---

# Since hey and bonsai get private keys compromised in Github, I wonder whether is good idea to build a package…

1 comments · 2025-10-28T18:06:43+00:00

[@meketom](https://hey.xyz/u/meketom) (Meke)

Since hey and bonsai get private keys compromised in Github, I wonder whether is good idea to build a package to prevent this errors. 1. Scan in local all you git commits to find a PRIVATEKEY in env file. 2. Create a git hook to prevent you about pushing a PRIVATEKEY in an env file.

[Profile](https://hey.xyz/u/meketom) · [Hey](https://hey.xyz) · [Permalink](https://hey.xyz/posts/2fxmkeb25sqvzxe0vae)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae#post","@type":"SocialMediaPosting","author":{"@id":"https://hey.xyz/u/meketom#person","@type":"Person","alternateName":"meketom","identifier":"0xa93bA2d0d9BfD0d812211806C3Ab7DbD9CbaD17f","image":"https://ik.imagekit.io/lens/tr:w-1200,h-630,q-100/c49bd684a25d14e935902469f6f7469f27f8137d0846a816a0042dc3b25b3e36_YVTsbn3xy.webp","name":"Meke","url":"https://hey.xyz/u/meketom"},"comment":[{"@id":"https://hey.xyz/posts/3c39bqh0h7q0kzy0t3#post","@type":["Comment","SocialMediaPosting"],"author":{"@id":"https://hey.xyz/u/todayistheday#person","@type":"Person","alternateName":"todayistheday","name":"Jean Ayala (🔥,🔥)","url":"https://hey.xyz/u/todayistheday"},"commentCount":2,"dateCreated":"2025-10-28T18:24:01+00:00","dateModified":"2025-10-28T18:24:01+00:00","datePublished":"2025-10-28T18:24:01+00:00","interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":1},{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2}],"text":"i think there’s already some tools doing this, BUT, this must be an habit, not a package","url":"https://hey.xyz/posts/3c39bqh0h7q0kzy0t3"}],"commentCount":1,"dateCreated":"2025-10-28T18:06:43+00:00","dateModified":"2025-10-28T18:06:43+00:00","datePublished":"2025-10-28T18:06:43+00:00","headline":"Since hey and bonsai get private keys compromised in Github, I wonder whether is good idea to build a package…","interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":1,"name":"Shares"},{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1}],"isPartOf":{"@id":"https://hey.xyz/#website"},"potentialAction":[{"@type":"CommentAction","target":{"@type":"EntryPoint","urlTemplate":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"}},{"@type":"LikeAction","target":{"@type":"EntryPoint","urlTemplate":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"}},{"@type":"ShareAction","name":"Repost","target":{"@type":"EntryPoint","urlTemplate":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"}}],"text":"Since hey and bonsai get private keys compromised in Github, I wonder whether is good idea to build a package to prevent this errors. 1. Scan in local all you git commits to find a PRIVATEKEY in env file. 2. Create a git hook to prevent you about pushing a PRIVATEKEY in an env file.","url":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"},{"@id":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","item":"https://hey.xyz","name":"Hey","position":1},{"@type":"ListItem","item":"https://hey.xyz/u/meketom","name":"Meke","position":2},{"@type":"ListItem","item":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae","name":"Since hey and bonsai get private keys compromised in Github…","position":3}]},{"@id":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae","@type":"WebPage","breadcrumb":{"@id":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae#breadcrumb"},"mainEntity":{"@id":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae#post"},"url":"https://hey.xyz/posts/2fxmkeb25sqvzxe0vae"}]}
```
