nerdexam
MicrosoftMicrosoft

GH-200 · Question #70

GH-200 Question #70: Real Exam Question with Answer & Explanation

Publishing a GitHub Action to the Marketplace requires the action.yml metadata file in the repository root and compliance with GitHub's action naming restrictions.

Author and Maintain Actions

Question

What are the mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? (Each correct answer presents part of the solution. Choose two.)

Options

  • AThe action can be either in a public or private repository.
  • BThe action's metadata file must be in the root directory of the repository.
  • CThe action's name cannot match a user or organization on GitHub unless the user or organization
  • DThe name should match with one of the existing GitHub Marketplace categories.
  • EEach repository can contain a collection of actions as long as they are under the same

Explanation

Publishing a GitHub Action to the Marketplace requires the action.yml metadata file in the repository root and compliance with GitHub's action naming restrictions.

Common mistakes.

  • A. Publishing to the GitHub Marketplace requires the action to be in a public repository; private repositories cannot be listed on the Marketplace.
  • D. Marketplace categories improve discoverability and are selected during publishing, but matching an existing category name is not a mandatory requirement for a successful Marketplace listing.
  • E. Each repository can only expose a single action at its root for Marketplace publishing; a single repository cannot be registered as multiple distinct Marketplace actions.

Concept tested. GitHub Marketplace action publishing mandatory requirements

Reference. https://docs.github.com/en/actions/sharing-automations/creating-actions/publishing-actions-in-github-marketplace

Topics

#GitHub Actions#GitHub Marketplace#Publishing Actions#Action Metadata

Community Discussion

No community discussion yet for this question.

Full GH-200 PracticeBrowse All GH-200 Questions