Question
What are the mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? (Each correct answer presents part of the solution. Choose two.)
- A. The action can be either in a public or private repository.
- B. The action’s metadata file must be in the root directory of the repository. Correct
- C. The action’s name cannot match a user or organization on GitHub unless the user or organization owner is publishing the action. Correct
- D. The name should match with one of the existing GitHub Marketplace categories.
- E. Each repository can contain a collection of actions as long as they are under the same Marketplace category.
Explanation
To publish to GitHub Marketplace, the repository must contain a single action metadata file (action.yml or action.yaml) at its root. The action's name cannot match a GitHub user or organization unless that owner is publishing it. The action must be in a public repository, so A is wrong. The name must not match an existing Marketplace category, which is the opposite of D. A repository can hold only one action, so E is wrong.