← GitHub Actions: automation, security, and operations
01 / 8 · 45 MIN

Events, filters, and dependencies

Explain why a workflow does not start and why a job is skipped.

Concept and mechanism

A workflow combines events, conditions, and jobs. Before investigating the runner, confirm whether the event should create a run: a workflow_dispatch file must exist on the default branch; simultaneous branch and path filters must both match.

A cron declares scheduling intent rather than a completion commitment. Record expected timing, the observed run, and the business outcome. A push made with GITHUB_TOKEN normally does not trigger another workflow; dispatch events have documented exceptions.

Consider this recursion protection when designing automation chains rather than adding a broad credential without assessing the need.

Guided application

In a fictional daily opening control, distinguish a missing run, a queued run, and a control completed with an error. Each state requires different evidence. If it never started, check the event and configuration; if queued, check eligibility and capacity; if failed, inspect the first useful error.

Needs establishes job dependencies without automatically sharing the machine or environment. A failed dependency can leave reporting skipped when no explicit status condition exists. To collect every matrix result, consider fail-fast: false and retain failures as real outcomes.

Before repeating operations with external effects, confirm idempotency and decide who communicates deadline risk.

IN PRACTICE

build fails; report with needs: build is skipped. Missing reporting does not establish success.

Common pitfalls

Cron as SLA; branch or path as OR; needs as shared memory; tolerating failure as collecting evidence.

Related topics: Data, outputs, and service networking · Reuse, artifacts, and troubleshooting · Actions with contracts and versions

Take this idea with you

Follow the event, selection, dependency, execution, and outcome chain.

Create account

References

GitHub is a trademark of the Microsoft group of companies. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by Microsoft. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.