MicrosoftMicrosoft
GH-200 · Question #27
GH-200 Question #27: Real Exam Question with Answer & Explanation
Every GitHub Action must include an action.yml metadata file in its root directory, and this file is the sole place where the action's inputs and outputs are declared.
Author and Maintain Actions
Question
When reviewing an action for use, what file defines its available inputs and outputs?
Options
- Ainputs.yml
- Bdefaults.json
- Cworkflow.yml
- Dconfig.json
- Eaction.yml
Explanation
Every GitHub Action must include an action.yml metadata file in its root directory, and this file is the sole place where the action's inputs and outputs are declared.
Common mistakes.
- A. inputs.yml is not a recognized GitHub Actions file format; inputs are declared inside action.yml, not in a separate dedicated file.
- B. defaults.json does not exist in the GitHub Actions specification; there is no JSON-based metadata format for defining action inputs and outputs.
- C. workflow.yml files (under .github/workflows/) define pipeline orchestration and call actions, but they do not define an action's own input and output interface.
- D. config.json is not a GitHub Actions metadata format; the required metadata file must be YAML-formatted and named action.yml or action.yaml.
Concept tested. GitHub Action metadata file inputs and outputs definition
Topics
#GitHub Actions#Custom Actions#Action Definition#action.yml
Community Discussion
No community discussion yet for this question.