Let’s Get Certified
Module 08 / 15 · Custom action development

Select and troubleshoot an action runtime

Choose JavaScript, Docker or composite according to the host and packaging needs, then reproduce failures from a clean checkout.

Runs locally, fails for consumers

A JavaScript action starts perfectly in the author's workspace but cannot find a dependency on a clean Windows runner. What should the action maintainer compare?

Work through the decision

Compare the files present at the pinned revision to runs.main and its dependency tree. An untracked local node_modules can hide a packaging gap. Build or bundle the action, test that committed distribution in a clean checkout and publish a reviewed revision.

Choose an action runtime

Composite actions orchestrate existing steps. JavaScript actions ship runnable code and its dependencies for their declared Node runtime. Docker actions package Linux tools in an image and require a compatible Linux runner. Check allowed distribution sources and pin reviewed revisions when production must be reproducible.

Diagnose the action boundary

Inspect the first failing step, action metadata, path, runtime and exit status. Missing bundled dependencies can break a JavaScript action in a clean checkout. For a local action, check out the containing repository before referencing its relative path.

A proprietary Linux renderer

A team has a Linux executable with unusual system libraries. A second team wants to call the same step from a Windows job. Does packaging it in a Docker action solve both requests?

Check your reasoning

A Docker action can supply the needed Linux userspace on a compatible Linux runner. Give rendering its own Linux job and transfer its output as an artifact. If Windows-native execution is a requirement, evaluate a separate cross-platform implementation.

GitHub documentation · GH-200 skills outline

Continue in GitHub Foundations. Choose automation, AI assistance or a development runtime.

Knowledge check

Select and troubleshoot an action runtime quiz

Answer 5 questions. Check each answer for an explanation.