GitHub maintainers can dramatically improve their project's security posture by enabling just six free settings. These aren't a silver bullet against all threats, but they effectively close common vulnerabilities, making projects a much tougher target. According to the GitHub Blog, these settings are designed to be easily implemented, often in under an hour.
The first critical step is adding a SECURITY.md file. This document clearly communicates to researchers how to report vulnerabilities, preventing accidental public disclosure or the need to hunt down maintainer contact information.
Pairing this with private vulnerability reporting (PVR) offers a secure channel for bug disclosures. PVR allows researchers to file confidential advisories that maintainers can triage privately before deciding on a public disclosure timeline.
Stop Secrets Leaking
Secret scanning, especially with push protection, is vital. Recent reports indicate a significant increase in leaked secrets, including API keys and tokens, often exacerbated by AI-assisted commits. Push protection blocks these secrets from leaving a developer's local machine before they reach the repository, regardless of whether the repo is public or private.
Dependabot and dependency review are crucial for managing project dependencies. These tools alert maintainers to known vulnerabilities in packages and provide clear visibility into what's being added or updated in pull requests, transforming opaque dependency changes into manageable reviews.



