Definition
What it is
GitHub Actions is the CI/CD service built into GitHub. A repository contains one or more YAML files under .github/workflows/; each file declares a workflow, a workflow declares one or more jobs, and each job runs a sequence of steps on a runner. A step is either a shell command or a reference to a reusable action, which is a packaged unit of automation published to the GitHub Marketplace or to any repository.
The trigger model is the distinguishing feature. A workflow runs in response to an event: a push, a pull request, an issue, a release, a schedule, a manual dispatch, or an event from another workflow. That coupling between repository activity and automation is what separates Actions from standalone CI services such as CircleCI or Travis CI: the CI system does not need to poll GitHub for changes because GitHub is the event source.
The execution model is jobs-on-runners. A runner is a virtual machine or container that GitHub provisions on demand, or one that the customer hosts. GitHub-hosted runners ship with a preinstalled toolchain for common languages and run on Ubuntu, Windows or macOS. Self-hosted runners are machines that the customer registers with GitHub and controls directly.
Why it matters
Before GitHub Actions reached general availability in November 2019, CI/CD on GitHub required a third-party service. A repository pushed code to GitHub; GitHub notified the CI service via a webhook; the CI service pulled the repository, ran the build, and reported the result back through the commit status API. Every step was a boundary that could fail, and every boundary was a credential that had to be managed.
Actions collapsed those boundaries into one platform. The repository, the workflow definition, the runner, the secrets, the artifacts and the logs live in the same product. The practical consequence is shorter time-to-first-pipeline: a new repository can have a working CI workflow in ten lines of YAML and a commit, without provisioning an account elsewhere.
The economic consequence is more subtle. GitHub's pricing makes Actions free and unlimited on public repositories, and metered on private ones. The free tier for private repositories is 2,000 minutes per month on the Free plan, 3,000 on Pro and Team, and 50,000 on Enterprise. Usage beyond the quota is billed per minute, with macOS runners costing 10x and Windows runners 2x the Linux rate. For open-source projects, the practical effect is that a mature CI pipeline is essentially free.
How it works
The lifecycle of a workflow run has five stages:
- Trigger. An event fires (push, pull request, schedule, manual dispatch).
- Match. GitHub reads the workflow files and selects those whose
on:clause matches the event and whose branch or path filters match the change. - Provision. GitHub allocates a runner for each job. Hosted runners are ephemeral: a fresh VM or container per job, destroyed afterwards. Self-hosted runners are persistent unless configured otherwise.
- Execute. The runner checks out the repository, sets up the environment, and runs the steps in order. Steps share a workspace but not a process; environment variables set in one step do not persist to the next unless written to
$GITHUB_ENV. - Report. The runner sends logs, artifacts and the job result back to GitHub. The commit status is updated, and downstream jobs that depend on this job may proceed or be cancelled.
Several features extend this core. Matrix builds run the same job across a combination of values (three Node.js versions × three operating systems = nine jobs) in parallel. Caching stores dependency directories between runs, keyed by a hash of the lockfile. Artifacts persist files after a job ends, for download or for a later job. Reusable workflows let one workflow call another, which is how organisations factor out shared pipelines. OIDC lets a workflow authenticate to a cloud provider without a long-lived secret: GitHub issues a short-lived JWT, and the cloud provider exchanges it for a scoped access token.
Common failures
The first failure is unpinned actions. An action referenced by a mutable tag can change under the workflow without warning. A tag is convenient; a SHA is reproducible. The trade-off is maintenance overhead versus supply-chain risk, and the correct answer depends on the threat model.
The second failure is secret leakage. A step that prints env to the log will print every environment variable, including any that were injected as secrets. GitHub masks known secret values in logs, but the masking is best-effort: a secret transformed by base64 or split across lines escapes it.
The third failure is over-permission. Before 2023, the default GITHUB_TOKEN had write access to many scopes. The default is now read-only, but workflows written before the change may still assume write access and fail silently. Explicit permissions: blocks are the fix.
The fourth failure is cost surprise. macOS runners consume minutes at 10x the Linux rate. A test matrix that runs on Ubuntu, Windows and macOS can consume a private repository's monthly quota in a single afternoon.
Origin
GitHub Actions was announced at GitHub Universe in October 2018 as a workflow automation tool: run code in response to events on GitHub. The initial version let developers trigger arbitrary containers from repository events, but it was not a full CI/CD service. Developers used it for CI anyway, and the feedback was consistent: make it a first-class CI/CD platform.
On 8 August 2019 GitHub launched the beta of a new version of Actions with full CI/CD capabilities, including matrix builds, multi-OS runners and a marketplace of reusable actions. General availability followed on 13 November 2019 at GitHub Universe. At GA, the Marketplace listed more than 1,200 community-developed actions; GitHub had more than 40 million developers on the platform.
The service was owned by GitHub, which Microsoft acquired in 2018 for USD 7.5 billion. That ownership matters for the licence: GitHub Actions is a proprietary SaaS, not an open-source project. The workflow files are YAML, the runner software is partly open source (the actions/runner repository is MIT-licensed), but the service itself is a commercial product with metered pricing.
Since we introduced GitHub Actions last year, the response has been phenomenal, and developers have created thousands of inspired workflows. But we've also heard clear feedback from almost everyone: you want CI/CD!
— Nat Friedman, CEO of GitHub, 8 August 2019
Evidence
FAQ
- 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.
Pros and cons
Pros
- Native integration with the repository: no webhook, no second account, no cross-service authentication.
- Free and unlimited on public repositories; generous free tiers on private ones.
- Marketplace with roughly 19,000 custom actions (July 2024) and thousands more published since.
- Matrix builds, caching, artifacts, reusable workflows and OIDC in the free tier.
- Self-hosted runners for specialised hardware or private-network workloads.
Cons
- Vendor lock-in: workflows are GitHub-specific YAML and do not port to other CI systems without a rewrite.
- Marketplace quality is uneven: most actions are unverified, a fifth have vulnerable dependencies, and hundreds are archived.
- macOS and Windows runners burn minutes at 10x and 2x the Linux rate, which surprises teams late in the month.
- Hosted runners are ephemeral and unprivileged, which limits Docker-in-Docker, nested virtualisation and long-running services.
Key numbers
Timeline
October 2018 — GitHub announces Actions at Universe; workflow automation on repository events.
8 August 2019 — beta of the full CI/CD version with matrix builds and multi-OS runners.
13 November 2019 — general availability at GitHub Universe; 1,200+ community actions.
2020 — GitHub Packages and Container Registry reach general availability.
2021 — reusable workflows and the
GITHUB_TOKENpermissions model are introduced.2022 — OIDC for cloud authentication becomes widely adopted.
2023 — default
GITHUB_TOKENbecomes read-only; supply-chain security becomes a mainstream concern.2024 — 19,113 custom actions in the Marketplace, per an independent security study.
Entities
Products and organisations in the GitHub Actions story
| nombre | tipo | rol | url | estado |
|---|---|---|---|---|
| GitHub Actions | producto | CI/CD de GitHub | https://github.com/features/actions | activo |
| GitHub | empresa | dueño del producto | https://github.com | activo |
| Microsoft | empresa | dueño de GitHub desde 2018 | https://microsoft.com | activo |
| GitHub Marketplace | plataforma | catálogo de acciones y apps | https://github.com/marketplace | activo |
| actions/runner | proyecto | runner open source (MIT) | https://github.com/actions/runner | activo |
| actions/checkout | acción | acción oficial más usada | https://github.com/actions/checkout | activo |
| GitLab CI | producto | competidor integrado en GitLab | https://about.gitlab.com/stages-devops-lifecycle/continuous-integration/ | activo |
| CircleCI | producto | competidor standalone | https://circleci.com | activo |
Learning path
Progression from beginner to expert
Prerequisite
This term
You are here: github-actions.
Next
reusable-workflow, self-hosted-runner, oidc, supply-chain-attack, sbom
Connections
- continuous-integration
- continuous-delivery
- gitlab-ci
- circleci
- jenkins
- oidc
- self-hosted-runner
Sources
GitHub Blog (2019). Automate your workflow, from code to cloud. https://github.blog/2019-11-19-automate-your-workflow-from-code-to-cloud/
TechCrunch (2019). GitHub gets a CI/CD service. https://techcrunch.com/2019/08/08/github-actions-is-now-a-ci-cd-service/
GitHub Docs (2024). GitHub Actions documentation. https://docs.github.com/en/actions
Legit Security (2024). Security of Custom GitHub Actions. https://www.legitsecurity.com/blog/security-of-custom-github-actions
Etymology
Origin: compound
GitHub(noun): nombre propio de la plataforma; portmanteau de git + hubActions(noun): del latín actio, "hacer, ejecutar"; en el producto, unidades de automatización
Semantic network
● broader ● narrower ● related
Broader
Related
gitlab-cicirclecijenkinsoidcself-hosted-runner
Used in the garden
- Core Web Vitals Optimization: The Complete Technical Guide (10×)
- Recovery SEO: How to Recover Lost Traffic and Rankings (6×)
- The Forgotten Secret: Repeat and Conquer in Profitable Business (5×)
- Consumer Psychology and Neuromarketing: The Complete Guide (4×)
- The Hidden Power of Repetition: Key to Sustainable Wealth & Success (4×)
- Data-Driven Branding: How Data Is Transforming Brand Building (4×)
- Success Story: How This Brand Cut CAC by 50% with Branding and SEO (3×)
- Digital Product Design for Seniors Over 60 (3×)
- The Subtle Art of Daily Micro-Wins: Small Changes, Monumental Transformations (3×)
- How to Attract High-Value Clients Without Relying on Referrals (3×)
- Mastering Your Desktop: Unleash Complex Workflows with sxhkd Hotkeys (2×)
- The Neuroscience of Habit Formation for Peak Performance (2×)
- Digital Marketing Fundamentals and Strategy: The Complete Guide (2×)
- Growth Hacking: Low-Cost Experiments for High-Impact Growth (2×)
- The Ultimate Digital Marketing Guide: Strategies for Sustainable Growth (2×)
- The Secret Gear of Your Day: Unlock Energy and Mental Clarity, No Matter Your Age (2×)
- Employer Branding: How to Attract Top Talent Through Your Brand (2×)
- Unlock Wealth: Elite Investors' Secret to Multiplying Your Money (2×)
- Mastering Database Schema Version Control: The DevOps Secret Weapon (2×)
- Marketing Automation, Growth Hacking, and Affiliate Marketing: The Complete Guide (2×)
- Brand Crisis Management: How to Protect and Restore Your Reputation (2×)
- Brand Architecture: How to Structure a Multi-Brand Portfolio (2×)
- Cialdini's 6 Principles of Persuasion: How to Apply Them to SEO and Branding (2×)
- Nudge Marketing: How Behavioral Economics Drives Conversions Without Manipulation (2×)
- Unleash Your Inner Architect: Crafting Dominant CLI Tools with Python & Click (2×)
- Social Media Marketing and Email Marketing: The Complete Guide (2×)
- Brand Trust, Reputation, and Employer Branding: The Pillars of Credibility (2×)
- The Secret of Successful Entrepreneurs: Repeat, Continue, and Triumph (2×)
- The Art of the Strategic Pivot for Micro-Entrepreneurs (1×)
- The Brand Differentiation Strategy (1×)
- The Orphan Domain Heuristic: Turning 900 Dormant Assets into SEO Authority (1×)
- Influencer Marketing: How to Choose and Work with Creators (1×)
- 10 Banned Websites That Will Blow Your Mind (2026 Edition) (1×)
- The Brand Future Strategy (1×)
- The Silent Engine: Automating Acquisition for Bootstrapped Micro-SaaS (1×)
- The Ultimate Measurement & ROI Guide: How to Prove Marketing Impact (1×)
- The Brand Legacy Strategy (1×)
- Medellín's Secret: Scaling Your Sub-K B2B SaaS to Market Dominance with Klaviyo (1×)
- 10 Secret Web Apps for Zero-Budget Digital Entrepreneurs & Freelancers That Will Transform Your Online Business (1×)
- The Forgotten Secret: Repeat and Continue for Profitable Business (1×)
- Accounts Receivable: Stop Letting Clients Hold Your Cash Hostage (1×)
- The Best-Kept Secret to Escaping the 'Get Rich Quick' Trap (1×)
- The Unseen Battlefield: How Server Logs Uncover Your SEO Power (1×)
- The Ultimate SEO Guide: How to Dominate Search Engines (1×)
- The Brand Community Strategy (1×)
- Decoding Male Attraction: Beyond the Obvious (1×)
- The Best Kept Secret: How to Unlock Your Child's Genius Potential (1×)
- Unlock the Hidden Genius! Untold Secrets for Child Education That PROPELS Your Kids' Future (1×)
- The Unspoken Truth of Scaling Your Micro-Agency: From Owner-Operator to Empire Builder (1×)
- Programmatic Advertising and AdTech: The Complete Guide (1×)
- The Dark Secret of the Rich: Why They Fear Losing Everything? (1×)
- Medellín SaaS Founders: Hyper-Scaling Beyond K MRR with Klaviyo & Lean Tech (1×)
- The Financial Success Secret: Repeat and Continue Without Fail (1×)
- Crafting the 'Wow' Factor: Aesthetic MVPs for Lean B2B SaaS in Spain (1×)
- Unstoppable Brands' Secret: Repeat & Win with Your Brand Operating System (1×)
- The Brand Protection Strategy (1×)
- Master Linux Automation: Bash Scripting Secrets for Solo IT Founders (1×)
- Master Automated Server Backups: Your Blueprint for Unbreakable Data Control (1×)
- The Brand Trust Ladder (1×)
- The Secret Code Unlocked! Digital Businesses That Propel You to Wealth with Minimal Investment (1×)
- The Wealth Secret: Repeat, Continue, Transform Your Business (1×)
- The Power of Micro-Automations for Service-Based Businesses (1×)
- The Brand Story Architecture (1×)
- Web Analytics and Data-Driven Marketing: The Complete Guide (1×)
- The Fast Money Trap: Why We Fall for It and How to Avoid It? (1×)
- User Experience (UX) and Customer-Centric Design: The Complete Guide (1×)
- Stop Wasting Money! 10 FREE Web Apps Every Smart Entrepreneur Needs to Scale TODAY (1×)
- The Brand Empathy Strategy (1×)
- Automate to Dominate: Unleash Hyper-Efficiency in Your LatAm Service SME (1×)
- The Brand Culture Strategy (1×)
- PBNs and Risky SEO Tactics: Why You Should Avoid Them (1×)
- Unlock Your Potential! 10 Free Web Apps That Will Transform Your Day and Business (1×)
- From Startup to Authority: The Journey of a Brand That Dominated Its Niche (1×)
- The Brand Valuation Strategy (1×)
- The Brand Identity System (1×)
- The Accidental Business: Turning a Skill into a Sustainable Enterprise (1×)
- The Unseen Architecture: Building a Brand Operating System for Emerging SaaS Founders (1×)
- The Forgotten Secret? Unlock Your Irresistible Presence and Seduce Life (1×)
- The 90-Day Brand Leap (1×)
- 10 Secret Web Apps to Transform Your Beauty and Digital Wellness (1×)
- Marketing Automation: Building Flows That Convert on Autopilot (1×)
- Code Your Way to Authority: Python & SMTP for Unstoppable Link Building (1×)
- The Unspeakable Secret to Success: Repeat and Continue to Dominate (1×)
- The Secret 'Hack' No One Tells You for an Extraordinary Life (and it's right under your nose) (1×)
- Unlock Hidden Power: Your Unstoppable Brand Operating System (1×)
- The Rapid Secret to Founding Profitable Businesses NOW! (1×)
- The Secret to Multiplying Your Digital Fortune? Repeat and Continue (1×)
- The Brand Echo Strategy (1×)
- Shortcut to Riches or Trap to Poverty? Uncover the Hidden Truth (1×)
Sources
GitHub Blog (2019). Automate your workflow, from code to cloud. https://github.blog/2019-11-19-automate-your-workflow-from-code-to-cloud/
TechCrunch (2019). GitHub gets a CI/CD service. https://techcrunch.com/2019/08/08/github-actions-is-now-a-ci-cd-service/
GitHub Docs (2024). GitHub Actions documentation. https://docs.github.com/en/actions
Legit Security (2024). Security of Custom GitHub Actions. https://www.legitsecurity.com/blog/security-of-custom-github-actions