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.
More on Custom Actions & Reusable Workflows
What are the three kinds of custom action and how do you choose?BeginnerWrite a minimal composite action that installs Node and dependencies with caching.IntermediateWhat can a composite action not do compared to a job?IntermediateHow do you pass outputs out of a composite action?IntermediateWhat does `action.yml` contain for a JavaScript action?IntermediateWhy must a JavaScript action commit its `dist/` or `node_modules`?Intermediate