Paul Krill
Editor at Large

GitHub rolls out push protection on public repos

news
Mar 1, 20241 min

With push protection, GitHub’s secret scanning blocks users from pushing secrets to a repository, while giving them the option to bypass the block.

goal keeper prevention
Credit: Thinkstock

GitHub has begun rolling out push protection for all of its users, a secrets scanning feature that gives users the option to remove secrets from commits or bypass a block.

The policy, announced February 29, affects supported secrets. It might take one to two weeks for this change to apply to an account; developers can verify status and opt in early in code security and analysis settings. GitHub secret scanning guards more than 200 token types and patterns from more than 180 service providers.

With push protection, secret scanning lists secrets it detects and allows the developer to remove them or bypass the block and allow the secrets to be pushed. Developers can bypass a block even with push protection enabled. Secret scanning can also check pushes for custom patterns. Push protection is always on by default, but can be disabled in user security settings. GitHub recommends leaving push protection on and making exceptions on an as-needed basis.

GitHub said that, in the first eight weeks of 2024, it has detected more than 1 million leaked secrets on public repositories. Organizations in the GitHub Enterprise plan can add GitHub Advanced Security to keep secrets out of private repositories.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author