GH-200 · Question #65
What is the simplest action type to run a shell script?
The correct answer is C. JavaScript action. JavaScript actions are considered the simplest custom action type in GitHub Actions because they run directly on the runner machine without any containerization overhead. They start quickly, require no Docker setup, and GitHub provides a toolkit (@actions/core, @actions/exec) to
Question
What is the simplest action type to run a shell script?
Options
- ABash script action
- BComposite action
- CJavaScript action
- DDocker container action
How the community answered
(46 responses)- A2% (1)
- B4% (2)
- C91% (42)
- D2% (1)
Explanation
JavaScript actions are considered the simplest custom action type in GitHub Actions because they run directly on the runner machine without any containerization overhead. They start quickly, require no Docker setup, and GitHub provides a toolkit (@actions/core, @actions/exec) to interact with the runner environment including executing shell commands. Docker container actions (D) require building and running a container. Composite actions (B) are simple for combining steps but require more YAML configuration. 'Bash script action' (A) is not a formal GitHub Actions action type.
Topics
Community Discussion
No community discussion yet for this question.