Interview Prep/DevSecOps/Incident Response and Governance

You notice your GitHub Actions minutes doubled and many runs come from PRs by unknown forks. What is happening?

IntermediateScenarioIncident Response and Governance
Answer

Situation read → Likely abuse of public CI for crypto mining, or probes trying to reach secrets through PR workflows.

What I'd do →

  1. Check the runs: workflow files modified in the PR, unusual binaries, long run times.
  2. Require approval for workflow runs from outside contributors (repository Actions settings).
  3. Make sure untrusted PR workflows use pull_request, not pull_request_target, and have no secrets.
  4. Set permissions: read-all or narrower as the default GITHUB_TOKEN scope.
  5. Never run public fork PRs on self-hosted runners.

Why → Public repos invite free compute abuse; approvals and least-privilege tokens remove the payoff.

Interview tip → Self-hosted runners on public repos are a well-known escalation path.

All DevSecOps questions

More on Incident Response and Governance