GitHub Actions Interview Questions
Check out 30 of the most common GitHub Actions interview questions and take an AI-powered practice interview
What is GitHub Actions and what problems does it solve?
What is the basic structure of a GitHub Actions workflow file?
What are the most common workflow triggers?
What is the difference between a job and a step?
What are GitHub-hosted runners and what's available?
How do you pass data between steps?
How do you use secrets in a workflow?
What is the difference between `uses` and `run` in a step?
How do you check out the source code in a workflow?
How do you control when a workflow or job runs using `if` conditions?
What is the `GITHUB_TOKEN` and how is it different from a Personal Access Token?
How do you store and reuse a build artifact across jobs?
How do you authenticate to AWS from GitHub Actions without long-lived keys?
What is a matrix build and when should you use it?
How do you cache dependencies to speed up workflows?
What is a reusable workflow and how does it differ from a composite action?
What are the three types of custom GitHub Actions you can write?
How do you handle workflow concurrency to avoid race conditions?
What are GitHub Environments and why use them?
How does the security model handle PRs from forks?
What is `permissions:` and why should you set it explicitly?
What are self-hosted runners and when do you need them?
How do you trigger a workflow from another workflow?
How do you pin third-party Actions for security?
How would you set up a multi-stage CI/CD pipeline (lint → test → build → deploy)?
How do you architect GitHub Actions for a large monorepo at scale?
How do you securely use third-party Actions from the Marketplace?
How does GitHub Actions compare to CircleCI, Jenkins, and Buildkite?
How do you implement progressive deployment (canary / blue-green) with GitHub Actions?
How do you debug a flaky GitHub Actions workflow that fails intermittently?
Frequently Asked Questions
Is GitHub Actions free for private repositories?
There is a free tier — 2000 minutes/month on private repos for the Free plan, 3000 for Pro, 50,000 for Enterprise. Beyond that, Linux runners are $0.008/minute, Windows is 2× that, macOS is 10× (in 2026). For most early-stage Indian startups (under 5 engineers, light CI load), the free tier is enough. At 10+ engineers shipping daily, you will exceed it and either pay per-minute or move to self-hosted runners on EKS/GKE.
How much does a GitHub Actions / DevOps engineer earn in India?
₹6-22 LPA in 2026 for engineers with CI/CD as a primary skill. The range depends heavily on what you pair it with: junior CI/CD engineers ₹6-10 LPA, mid-level DevOps with GitHub Actions + Kubernetes + AWS ₹14-18 LPA, senior platform engineers building internal developer platforms ₹20-22+ LPA. Companies hiring: Razorpay, Swiggy, Zerodha, Postman, CRED, Freshworks, Zomato. Fintech and ML-heavy shops pay at the top end.
Should I use GitHub Actions or Jenkins for a new project in 2026?
GitHub Actions, unless you have an existing Jenkins investment with custom plugins you'd have to rewrite. The integration with PRs, secrets, environments, and the Marketplace ecosystem makes Actions the default for greenfield projects. Jenkins still wins for very complex multi-cluster pipelines with heavy custom-plugin requirements, but those use cases are rare in product startups.
How do I handle very long-running builds (1+ hour) in GitHub Actions?
Default GitHub-hosted runners have a 6-hour job limit, 35-day workflow limit. For builds approaching that, options are: (a) split into multiple jobs that pass artifacts (parallel where possible), (b) use larger runners (4-64 vCPU) which complete in proportionally less wall time, (c) move to self-hosted runners on Kubernetes (no time limit, much faster spin-up). Heavy ML training jobs are the most common offender — most teams move those to a dedicated GPU runner pool.
What's the most common GitHub Actions security mistake?
Using `pull_request_target` and checking out the PR head SHA. This runs untrusted code with full repo secrets and was the root cause of multiple high-profile CI compromises in 2022-23. Runner-up: not pinning third-party Actions to SHAs, which exposes you to tag-rewrite supply-chain attacks like the 2025 `tj-actions/changed-files` incident. Both are well-documented in the official GitHub security hardening guide and should be the first audit you run on any new repo. A close third is leaving `permissions:` unset at the workflow level, which gives every job write access by default — easy fix, big blast-radius reduction.
Can I run GitHub Actions on ARM-based runners in 2026?
Yes. GitHub rolled out Linux ARM64 runners (`ubuntu-24.04-arm`, `ubuntu-22.04-arm`) to general availability in 2024-25, and they are widely used in 2026. ARM runners are about 30-40% cheaper per minute than equivalent x86 runners and noticeably faster for Node, Go, Rust, and JVM workloads (which all have first-class ARM toolchains now). The main caveat: any native code dependency must be available for ARM (`node-canvas`, certain prebuilt npm modules). Most teams use ARM for Linux Docker image builds (cross-arch via `docker/build-push-action` and QEMU is slow) and stay on x86 only where a dependency forces it. Self-hosted ARM is also straightforward on AWS Graviton instances via ARC.
Introduction
GitHub Actions has become the default CI/CD platform for Indian startups in 2026. With over 80% of new repositories using it for builds, tests, and deployments, it has effectively displaced Jenkins, CircleCI, and Travis for most greenfield projects. Its tight integration with GitHub means a single YAML file unlocks build pipelines, security scans, deploy gates, and even Issue automation.
If you are interviewing for a DevOps, SRE, or full-stack role at companies like Razorpay, Swiggy, Zerodha, Postman, or CRED, expect deep questions on workflow syntax, secret handling, OIDC cloud authentication, reusable workflows, matrix builds, caching strategies, and the security model around fork PRs and self-hosted runners.
This guide covers the 30 most-asked GitHub Actions interview questions in 2026, structured by difficulty. Each answer includes the underlying mechanics, common gotchas, and a YAML example where it clarifies the concept.