Interview Prep/GitHub Actions/Pipeline Design & Triggers

Leadership wants a weekly report of failed workflow runs across 50 repos. How do you build it?

IntermediateScenarioPipeline Design & Triggers
Answer

Situation read → Cross-repo read access and aggregation.

What I'd do →

  1. Central repo with a schedule workflow.
  2. GitHub App token with actions: read on the org's repos (actions/create-github-app-token with owner: devopsshack).
  3. Script with gh api --paginate "repos/ORG/$r/actions/runs?status=failure&created=>=$(date -d '7 days ago' +%F)", aggregate by workflow and repo.
  4. Write markdown to $GITHUB_STEP_SUMMARY and post to Slack.

Why → GITHUB_TOKEN is single-repo; an App token is the right cross-repo identity.

Interview tip → For orgs at scale, mention streaming audit logs and Actions metrics instead of polling.

All GitHub Actions questions Roadmap: GitHub Actions

More on Pipeline Design & Triggers