In action.yml, input region is optional for callers but should default to us-east-1 when omitted. Which declaration is correct?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Optional action inputs use required: false (or omit required) plus a default value. required: true forces callers to pass it; outputs and branding are the wrong sections for defaults.
Full explanation below image
Full Explanation
action.yml inputs support description, required, and default. For optional parameters, set required: false and provide default so ${{ inputs.region }} is populated when callers omit with:. If required: true, missing inputs fail the workflow at validation/runtime. outputs declare values the action produces, not caller parameters. branding only sets icon and color for Marketplace listing. Document defaults clearly in the description field. For composite and JavaScript actions, read inputs via the inputs context or toolkit helpers. Changing defaults is a behavioral change—semver your action tags accordingly.