Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

How do you consume an action from a Docker image directly, without an `action.yml`?

BeginnerConceptCustom Actions & Reusable Workflows
Answer
- uses: docker://ghcr.io/hadolint/hadolint:v2.12.0
  with:
    args: hadolint Dockerfile

with.args and with.entrypoint override the image's command and entrypoint. Pin by digest (docker://image@sha256:...) for supply-chain safety.

All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows