GH-200 · Question #43
Which repository files are required for a Docker container action and for a JavaScript action to run correctly? (Choose 3)
The correct answer is A. JavaScript entry file such as main.js or index.js C. Action metadata file action.yml or action.yaml D. Container action Dockerfile. Both action types share required files but each has unique requirements. The action metadata file (action.yml or action.yaml) - Option C - is mandatory for ALL custom actions regardless of type; it defines inputs, outputs, and the runs configuration. A JavaScript action…
Question
Which repository files are required for a Docker container action and for a JavaScript action to run correctly? (Choose 3)
Options
- AJavaScript entry file such as main.js or index.js
- Bpackage.json
- CAction metadata file action.yml or action.yaml
- DContainer action Dockerfile
How the community answered
(50 responses)- A86% (43)
- B14% (7)
Explanation
Both action types share required files but each has unique requirements. The action metadata file (action.yml or action.yaml) - Option C - is mandatory for ALL custom actions regardless of type; it defines inputs, outputs, and the runs configuration. A JavaScript action requires a JavaScript entry file (Option A, e.g., main.js or index.js) as specified by runs.main in the metadata. A Docker container action requires a Dockerfile (Option D) to build the container image. Option B (package.json) is commonly present in JavaScript action repositories but is not strictly required - bundled actions can ship dependencies without it.
Topics
Community Discussion
No community discussion yet for this question.