Opscraft
CI/CD & build tooling

GitHub Actions

New10 lessons · 32 min · 3 tests ·

GitHub Actions is the CI/CD system built into GitHub and now the default for many product companies in Bangalore — often alongside or replacing Jenkins. Writing a basic workflow is easy; senior interviews probe the details that matter in production: event types and their security implications, reusable workflows for dozens of repos, OIDC to AWS instead of stored keys, self-hosted runners on Kubernetes, caching, environments with approvals, and hardening against supply-chain and injection attacks.

Stage 2 · Core tools

Know these first

After this topic you can

  • Build CI/CD workflows with jobs, caching and matrices
  • Deploy to AWS without stored keys using OIDC
  • Secure workflows against common supply-chain attacks

Lessons

  1. 1The model: workflows, jobs, steps and runners 3 min read
    • Building blocks
    • Anatomy of a workflow
    • Contexts and expressions
  2. 2Events and triggers 3 min read
    • Common events
    • Filtering and control
  3. 3Jobs: dependencies, matrices, conditions and services 3 min read
    • Dependencies and outputs
    • Matrix builds
    • Conditions, timeouts and resilience
    • Service containers and container jobs
  4. 4Reuse at scale: actions and reusable workflows 3 min read
    • Kinds of actions
    • Reusable workflows
    • Versioning and pinning
  5. 5Secrets, environments and OIDC 4 min read
    • Secrets and variables
    • The GITHUB_TOKEN and permissions
    • Environments and approvals
    • OIDC to AWS: no stored access keys
  6. 6Runners, caching and artifacts 4 min read
    • Runner options
    • Caching
    • Artifacts
  7. 7Security hardening 3 min read
    • Script injection
    • pull_request_target and workflow_run
    • Supply chain
  8. 8A complete pipeline: Java service to EKS via GitOps 3 min read
  9. 9Operating Actions, migrating from Jenkins, troubleshooting 3 min read
    • Debugging
    • Jenkins → GitHub Actions mapping
    • Cost and limits
  10. 10Interview questions and model answers 3 min read
    • "How do you authenticate GitHub Actions to AWS?"
    • "pull_request vs pull_request_target?"
    • "How do you share pipelines across 50 repositories?"
    • "How do you secure GitHub Actions?"
    • "How would you speed up a slow Actions pipeline?"
    • "Composite action vs reusable workflow?"
    • "Your self-hosted runners run on EKS — how do you set that up safely?"