Files
2026-03-12 14:02:09 +01:00

1.4 KiB

Inputs Reference

The GitHub Slug Action accepts the following inputs in the with: block.

Input Required Default Description
prefix No "" Value prepended to each generated variable name. For example, prefix: CI_ produces CI_GITHUB_REPOSITORY_SLUG instead of GITHUB_REPOSITORY_SLUG.
slug-maxlength Yes 63 Maximum length of slugified values. Accepts a number or "nolimit" to disable truncation. Must not be empty.
short-length No (Git default) Length of shortened SHA values. Minimum 4. When empty, Git determines the length based on your repository size using git rev-parse.

Notes

  • When short-length is left empty, the action uses the effective value of the core.abbrev Git configuration variable. This requires your repository to be checked out first (via actions/checkout).
  • The slug-maxlength default of 63 matches the DNS label length limit, which is also the maximum length for Kubernetes labels.

See also