Five questions cover the practical ground: cost, vs competitors, self-hosted, security and OIDC.
- Is GitHub Actions free?
On public repositories, yes: unlimited minutes and storage on standard GitHub-hosted runners. On private repositories, each plan has a monthly quota: 2,000 minutes on Free, 3,000 on Pro and Team, 50,000 on Enterprise. Beyond the quota, usage is billed per minute, with macOS at 10x and Windows at 2x the Linux rate.
- How does it compare to GitLab CI or CircleCI?
GitLab CI is built into GitLab and uses a similar YAML model; CircleCI is a standalone service with a stronger focus on caching and parallelism. Actions wins when the repository already lives on GitHub; the integration cost of a separate CI service is the friction it removes.
- Do I need self-hosted runners?
Only if the hosted runners do not fit the workload: specialised hardware (GPUs, ARM), network access to private resources, or cost control at very high volume. Hosted runners are simpler, ephemeral and maintained by GitHub; self-hosted runners are more flexible and more work.
- How do I keep secrets safe?
Never echo them; GitHub masks known values in logs, but masking is not a security boundary. Use environment-scoped secrets, require reviewers for production environments, and prefer OIDC over long-lived cloud credentials. Pin actions to commit SHAs for the ones that touch secrets.
- What is OIDC and why does it matter?
OpenID Connect lets a workflow prove its identity to a cloud provider (AWS, GCP, Azure) by presenting a short-lived JWT that GitHub issues. The cloud provider validates the JWT and returns a scoped access token. No long-lived cloud secret is stored in GitHub, so there is nothing to leak.