
A pull request is opened. Before anyone reviews it, the code should be built, the tests should run, the linter should check the style and a security scanner should look at the dependencies. When it is merged, a container image should be built and shipped to a test environment. Doing that by hand is slow and easy to forget; running a separate CI server means another system to log into, patch and connect to the repository. GitHub Actions puts that automation inside the repository itself, next to the code it builds.
This article explains what GitHub Actions is, how workflows, jobs and runners fit together, where it is a good fit, where it is not, and how it compares with other CI/CD tools.
What is GitHub Actions?
GitHub Actions is the continuous integration and continuous delivery (CI/CD) and automation platform built into GitHub. You describe a workflow in a YAML file in the repository, choose which events start it, such as a push, a pull request, a new release or a schedule, and GitHub runs it on a machine it provides or on a machine you register yourself.
GitHub announced Actions at its Universe conference on 16 October 2018 as a limited beta for chaining automation steps packaged in containers. In August 2019 a new beta added full CI/CD support with a YAML workflow syntax, and on 11 November 2019 GitHub Actions became generally available. GitHub itself has been owned by Microsoft since 2018, which is why Actions also has close integrations with Azure, although it deploys just as well to other clouds.
The idea that made Actions spread quickly was reuse. A step in a workflow can be a shell command or an "action": a packaged, versioned piece of automation published in a repository. Setting up a language runtime, logging in to a cloud provider or caching dependencies is one line that points at an existing action, instead of a script every team writes again.
How GitHub Actions works
Workflows live in the repository. Each workflow is a YAML file under .github/workflows/. Because it is code, it is reviewed in pull requests, versioned with the application and branches with it.
Events trigger workflows. A workflow declares the events it listens to: push, pull_request, release, a cron schedule, a manual workflow_dispatch button, or dozens of other repository events such as a new issue or a comment.
Jobs and steps. A workflow contains one or more jobs. Jobs run in parallel by default, or in order when one needs another. Each job is a list of steps that run in sequence on the same machine and share its file system.
Runners execute the jobs. A runner is the machine that runs a job. GitHub-hosted runners are fresh virtual machines with Linux, Windows or macOS, created for the job and discarded afterwards. Self-hosted runners are your own servers, virtual machines or Kubernetes pods, registered with the repository or organisation, which is how teams reach private networks or special hardware.
Context, secrets and outputs. Jobs read encrypted secrets and variables, receive an automatic GITHUB_TOKEN scoped to the repository, and pass outputs and build artifacts to later jobs.
Key features
- Marketplace actions for common tasks: setting up Node.js, Python or Java, logging in to cloud providers, building Docker images, running Trivy scans.
- Matrix builds that run the same job across several operating systems or language versions in parallel.
- Reusable workflows and composite actions, so a platform team can maintain one pipeline definition that many repositories call.
- Environments with protection rules: required reviewers, wait timers and branch restrictions before a job can deploy to production.
- OpenID Connect (OIDC) to cloud providers, so deployments get short-lived credentials instead of long-lived keys stored as secrets.
- Caching and artifacts to speed up builds and hand build outputs between jobs.
- Self-hosted runners, including autoscaling runners on Kubernetes.
Where GitHub Actions is used
- Continuous integration on every pull request: build, unit tests, linting and type checks, with results shown directly on the pull request.
- Container delivery: building images, scanning them and pushing them to a registry, then updating a Kubernetes cluster, often through Helm.
- Infrastructure as code: running
planon pull requests andapplyafter merge for tools such as Terraform. - Release automation: tagging, changelogs, publishing packages to npm, PyPI or a container registry.
- Repository housekeeping: labelling issues, closing stale pull requests, updating dependencies on a schedule.
When to choose GitHub Actions, and when not to
Choose GitHub Actions when:
- Your code is already on GitHub. Pipelines, pull requests and reviews sit in one place, with no separate CI system to run or integrate.
- You want to start quickly: a working pipeline is a short YAML file and a few marketplace actions.
- You need to test across several platforms, including macOS, without maintaining build machines.
- You want a mix of hosted runners for everyday builds and self-hosted runners for private networks.
Think twice when:
- Your source code lives in GitLab or Bitbucket. Their built-in pipelines, GitLab CI/CD and Bitbucket Pipelines, fit those platforms more naturally.
- You must run everything inside an isolated network with no connection to GitHub. GitHub Enterprise Server can be self-hosted, but a self-managed CI server such as Jenkins may suit a fully air-gapped setup better.
- Pipelines are very large and long-running. Hosted runner minutes add up, and teams at that scale usually move heavy jobs to self-hosted runners.
- Nobody owns pipeline security. Third-party actions run with access to your code and secrets; they should be pinned to a specific commit and reviewed like any other dependency.
GitHub Actions and its alternatives
| Tool | Where it runs | Pipeline file | Best fit |
|---|---|---|---|
| GitHub Actions | GitHub-hosted or self-hosted runners | .github/workflows/*.yml | Teams whose code is on GitHub |
| GitLab CI/CD | GitLab.com or self-managed runners | .gitlab-ci.yml | Teams on GitLab, self-hosted DevOps platform |
| Bitbucket Pipelines | Atlassian cloud or self-hosted runners | bitbucket-pipelines.yml | Teams using Bitbucket and Jira |
| Jenkins | Your own servers | Jenkinsfile | Full control, complex or on-premise pipelines |
The practical difference between these tools is mostly where your code lives. GitHub Actions, GitLab CI/CD and Bitbucket Pipelines are built into their code platforms, so the pipeline is part of the repository experience. Jenkins is a separate automation server you run yourself, which gives the most control and the most maintenance. We compare the CI/CD tools side by side, including the frequent "GitHub Actions vs Jenkins" question, in our Jenkins article.
For the broader picture of why CI/CD matters in the first place, see DevOps and CI/CD: continuous improvement in software development.
How we use GitHub Actions at Internative
We use GitHub Actions to build reliable, automated delivery pipelines that sit right next to the codebase. Its flexibility and its ecosystem of actions let us set up fast and secure CI/CD workflows across projects, and grow them as a product grows.
If you want to automate builds, tests and releases for your product, or bring an existing pipeline under control, our DevOps services team can help you design it.
Frequently asked questions
What is GitHub Actions used for?
GitHub Actions automates work around a GitHub repository. Most teams use it for CI/CD: building and testing code on every pull request, building container images and deploying them. It is also used for release automation, scheduled jobs and repository housekeeping such as labelling issues.
How does GitHub Actions work?
You add a YAML workflow file under .github/workflows/ and declare which events trigger it. When the event happens, GitHub starts the workflow's jobs on runners, either virtual machines it hosts or machines you register, and each job runs its steps in order.
Is GitHub Actions free?
GitHub Actions is free for public repositories on GitHub-hosted runners. For private repositories, every GitHub plan includes a monthly allowance of runner minutes and storage, and usage above it is billed. Jobs on self-hosted runners do not use the hosted minutes.
What is the difference between GitHub and GitHub Actions?
GitHub is the platform that hosts Git repositories, pull requests, issues and code review. GitHub Actions is one of its features: the automation engine that runs workflows when something happens in those repositories.
Should I use GitHub Actions or Jenkins?
If your code is on GitHub and you want a pipeline without running a server, GitHub Actions is the simpler choice. Jenkins fits when you need full control of a self-hosted automation server, deep customisation through plugins, or pipelines that span many systems inside your own network.
Keep reading
The articles that follow this one.



