TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GitHub push protection is free for all public repositories

97 pointsby manojr13about 2 years ago

5 comments

greysteilabout 2 years ago
I worked on this before leaving GitHub a couple of months ago. It’s awesome. This release is a repo-level setting, which is nice, but it will be even more useful when the team releases a user-level setting in June&#x2F;July. That will allow you to configure GitHub to (softly) prevent you from pushing any easily identifiable secrets to any public repo. The plan is for it to be on by default.<p>For context, about 200 new GitHub personal access tokens (PATs) are exposed in public repos every day, together with many more tokens from other providers. GitHub automatically revokes the PATs it finds, and notifies many partners if&#x2F;when keys to their services are found, but we always felt it would be better to prevent the leaks from happening in the first place.
评论 #35900644 未加载
darthbananeabout 2 years ago
I don&#x27;t get it. If github declines the push then the blob must have already crossed the internet?<p>The message says to remove the secret from the commit but the actual action to take would be to rotate the secret since it&#x27;s been exposed to github, no?
评论 #35897769 未加载
评论 #35897715 未加载
评论 #35897965 未加载
评论 #35900534 未加载
Chico75about 2 years ago
Nice move to protect public repos.<p>For all other private repos and internal git servers, you can assume that credentials are routinely exposed if there is no pre-receive hook checking for secrets. We experimented with all the existing tools but none of them worked well enough so we built our own. Looking back we would have saved ourselves a lot of time and effort if we went with commercial offering like GitGuardian instead.
pabs3about 2 years ago
I wonder what tool(s) GitHub are using for the secret scanning.
评论 #35897777 未加载
mennaaliabout 2 years ago
I wish these were not add-ons for private repos.
评论 #35898070 未加载