Interview Prep/GitHub Actions/Security Hardening & Supply Chain

Runners on GitHub-hosted VMs can reach the internet freely. How do you detect or limit exfiltration?

AdvancedScenarioSecurity Hardening & Supply Chain
Answer

Situation read → Egress control on hosted runners is limited.

What I'd do →

  1. Use an egress-monitoring agent such as StepSecurity Harden-Runner in audit mode to baseline endpoints, then block mode with an allow-list.
  2. For sensitive workflows, use larger runners with private networking or self-hosted runners behind an egress proxy.
  3. Keep secrets scoped to steps so exfiltration from other steps finds nothing.

Why → The tj-actions incident was detected by egress monitoring of unexpected endpoints.

Interview tip → Mention audit first, then block, to avoid breaking builds.

All GitHub Actions questions Roadmap: GitHub Actions

More on Security Hardening & Supply Chain