GitHub
The world’s largest platform for hosting code, reviewing changes and automating work around a Git repository.
- Type
- Code hosting and collaboration platform
- Created by
- GitHub, owned by Microsoft since 2018
- Includes
- Pull requests, Actions, Dependabot, code and secret scanning
- In my stack
- Code, reviews and pipelines with GitHub Actions
What it is
GitHub hosts Git repositories and organises the work around them. Changes are proposed as pull requests, discussed line by line and merged once approved. Issues and Projects track the work, and branch protection rules decide what can reach the main branch.
GitHub Actions runs CI/CD pipelines and automations from a YAML file in the repository, with thousands of ready-made actions. Dependabot opens pull requests to update vulnerable or outdated dependencies, secret scanning catches keys pushed by mistake, and code scanning flags risky code. It is also where most open-source software lives.
Why I use it
Reviews that work. Pull requests with required approvals and passing checks mean no change reaches production without a second pair of eyes and green tests.
Dependencies stay up to date. Dependabot turns security updates into small pull requests that the pipeline tests automatically.
Actions for everything. Tests, builds, scans and deployments run next to the code, and integrations exist for almost every tool and cloud.
Familiar to everyone. Almost every developer already knows it, which makes handing a project over easy.
Where I use it
When a project’s code lives on GitHub, I set up the repository so that quality is enforced rather than hoped for: protected main branch, required reviews, required checks, Dependabot and secret scanning switched on. GitHub Actions runs the pipeline, from tests to deployment and OWASP ZAP scans, and Vercel picks up every pull request to publish a preview.
Best use cases
- Most software projects, from a solo app to a team of dozens.
- Open-source projects that want visibility and outside contributions.
- CI/CD with GitHub Actions, especially when the cloud and tools already have official actions.
- Keeping dependencies secure with Dependabot alerts and automatic update pull requests.
When I’d use something else
When the code must be hosted on the client’s own servers, self-managed GitLab is the simpler path; GitHub Enterprise Server exists, but it is a heavier investment. Organisations already deep in Microsoft tooling sometimes prefer Azure DevOps, which offers the same building blocks.
A small example
Two small files that make a repository safer: Dependabot opens weekly update pull requests, and CODEOWNERS requires the right people to review sensitive folders.
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/web"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
# .github/CODEOWNERS
/infra/ @acme/devops
/migrations/ @acme/backend