Let’s Get Certified
Module 07 / 15 · Workflow troubleshooting

Choose a starter, reusable workflow or composite action

Place a shared definition at the correct boundary and explain how a change will reach its consumers.

Three types of reuse in one project

Teams need an editable CI skeleton, identical setup steps around their own commands and a centrally versioned two-job release process. Which mechanism belongs at each boundary?

Work through the decision

Offer the skeleton as an organization starter. Package the setup as a composite action used in a step. Put the release process in a reusable workflow called by a job. Record each pin and assign an owner for reviewing upgrades.

Call shared workflow logic

A reusable workflow declares workflow_call and can contain multiple jobs. A caller job uses the path to the workflow file, with an explicit reference for an external repository. The called workflow executes in the caller's context under a permissions ceiling set by that call.

Share nonpublic templates deliberately

An organization can distribute starter workflow templates through its .github repository in workflow-templates, with a matching properties file for discovery. The visibility of the template source and consumer's access matter. Keep sensitive values out of the starter because the resulting workflow is copied.

Adapt a starter to a project

The chooser copies a starter into .github/workflows. Match its events, working directory, runtime and test command to the consuming repository. Future edits to the starter do not automatically update copies already installed.

Choose the reuse boundary

Starter templates copy a file once. Reusable workflows own whole jobs invoked as a job. Composite actions bundle steps and are invoked as a step in the caller's job. Choose the boundary by asking who owns updates and where the runner and neighboring steps belong.

Pause future runs without erasing the definition

Disable a workflow to stop future triggers temporarily while keeping its definition available to re-enable. Removing its YAML changes what the repository defines. Deleting a particular run removes that run's evidence and does not disable future events.

Pausing a noisy job

A vendor pauses its sandbox for one day. The test integration should resume automatically after maintainers restore it, and its definition and historical evidence should remain. What should they do?

Check your reasoning

Disable the affected workflow temporarily and record when to re-enable it. Check whether any branch requires its status before merging. Deleting a past run affects evidence and does nothing to prevent the next event.

GitHub documentation · GH-200 skills outline

Continue in GitHub Foundations. Set up a repository others can maintain.

Knowledge check

Choose a starter, reusable workflow or composite action quiz

Answer 5 questions. Check each answer for an explanation.