nerdexam
Microsoft

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

Create and manage custom actions

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)
  • A
    2% (1)
  • B
    4% (2)
  • C
    91% (42)
  • D
    2% (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

#GitHub Actions#Custom Actions#JavaScript Actions#Shell Scripting

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice