GH-200 · Question #20
As a developer, how can you identify a composite action on GitHub?
The correct answer is D. The action.yml metadata file has the runs.using value set to composite. A composite action is definitively identified by the runs.using: composite value in its action.yml metadata file. This setting tells GitHub Actions to treat the action's steps as a sequence of shell commands or other action references rather than a single Docker container or…
Question
As a developer, how can you identify a composite action on GitHub?
Options
- AThe action's repository name includes the keyword "composite."
- BThe action's repository includes an init.sh file in the root directory.
- CThe action's repository includes Dockerfile and package.json files.
- DThe action.yml metadata file has the runs.using value set to composite.
How the community answered
(44 responses)- A2% (1)
- B2% (1)
- C5% (2)
- D91% (40)
Explanation
A composite action is definitively identified by the runs.using: composite value in its action.yml metadata file. This setting tells GitHub Actions to treat the action's steps as a sequence of shell commands or other action references rather than a single Docker container or Node.js script. Repository naming (option A), shell scripts in the root (option B), and the presence of a Dockerfile with package.json (option C) are not reliable indicators of a composite action.
Topics
Community Discussion
No community discussion yet for this question.