r/github • • 3h ago

Discussion Together AI's coding agent committed a key, how shall we prevent it

together ai says one of its coding agents pushed a credential into a public github repo and it opened a private hugging face repo with prompt samples from june and july. scanning caught it and the commit got reverted but someone had already downloaded the samples

cleanup is still revoking it at hugging face, then gitleaks or trufflehog for copies the agent left in other branches and logs, with provider usage logs and a runtime view such as hush security showing which still get used

the agent being the committer changes where the checks go tho.

a plain pre commit hook gets skipped with --no-verify. claude code PreToolUse hooks can stop the git commit before it runs and push protection is the last stop

0 Upvotes

3 comments sorted by

3

u/funcyChaos 1h ago • Bravo

Stop using ai 🔥

2

u/Jmc_da_boss 2h ago

You prevent it by not being mind bogglingly stupid. It's really that easy

1

u/dashingThroughSnow12 3h ago

Push protection?

Looking that up.

TIL public GitHub doesn't support pre-receive hooks and instead uses "Push protection".