Interview Prep/GitHub Actions/Reuse at Scale: Reusable Workflows & Actions

You need a step that runs a Python linter with exact dependencies in many repos. Docker action or composite?

IntermediateScenarioReuse at Scale: Reusable Workflows & Actions
Answer

Situation read → Dependency isolation vs speed and portability.

What I'd do →

  1. If Linux only, publish a prebuilt image to GHCR and a Docker action referencing docker://ghcr.io/org/pylint-action@sha256:....
  2. If cross-platform or speed matters, composite with setup-python (with cache) and a pinned requirements file shipped in the action repo.

Why → A prebuilt image gives exact dependencies; a Dockerfile-based action rebuilds every run, which is slow.

Interview tip → Call out "prebuilt image, not Dockerfile" for Docker actions.

All GitHub Actions questions Roadmap: GitHub Actions

More on Reuse at Scale: Reusable Workflows & Actions