Which fields are REQUIRED in an action's 'action.yml' metadata file?
Select an answer to reveal the explanation.
Short Explanation and Infographic
An action.yml needs a name, description, and runs block — author, inputs, and outputs are all optional extras.
Full explanation below image
Full Explanation
The 'action.yml' (or 'action.yaml') metadata file requires three fields: 'name' (display name), 'description' (short description), and 'runs' (defines how the action executes — javascript, composite, or docker). 'author' is optional. 'version' is not a field in action.yml — versioning is handled by git tags. 'inputs' and 'outputs' are optional but used to define action interface. Without 'runs', GitHub doesn't know how to execute the action. The 'runs.using' field specifies the runtime: 'node20', 'composite', or 'docker'.