| install | List of modules or distributions to install [separated by newline] | no | — |
| cpanfile | Use a cpanfile to install modules | no | — |
| tests | Run or not the unit tests | no | false |
| global | Perform a global or local installation: -g | no | true |
| args | Extra args passed to the install command. Supports shell-style quoting (single and double quotes) for values that contain spaces. | no | — |
| sudo | Perform installations as root | no | true |
| verbose | Run cpm with -v flag or not | no | false |
| perl | Path of perl to use, defaults to current PATH | no | perl |
| path | Path where to install cpm: the string can use $Config values | no | $Config{installsitescript}/cpm |
| workers | Number of parallel workers for cpm downloads (e.g. 5). Leave empty to use cpm default. | no | "" |
| mirror | Specify a CPAN mirror URL to use with --mirror | no | — |
| snapshot | Path to cpanfile.snapshot for snapshot-based installs (requires Carton::Snapshot). Leave empty to skip. | no | "" |
| version | Which version of cpm to install. Default 'main' tracks the latest release. On Perl interpreters older than v5.24, the default is automatically replaced by '0.998003' (the last release before cpm raised its minimum to v5.24). Set this input explicitly to override.
| no | main |
| checksum | Expected SHA-256 hex digest of the cpm script. When set, the action verifies the downloaded (or cached) script matches this hash before installation and fails if there is a mismatch. Leave empty to skip verification (the computed hash is still logged for auditability).
| no | "" |
| retries | Number of additional attempts after a cpm failure. 0 disables the retry loop (single attempt, historical behavior). Intended to absorb transient upstream failures (e.g. metacpan 599 / connection timed out) without flaking the job.
| no | 2 |
| retry-wait | Base delay in seconds between attempts. Applied with linear backoff: attempt N waits retry-wait * N seconds before the next attempt (e.g. 20s, 40s, 60s with the default).
| no | 20 |