GH-200 practice question 13 of 15
When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?
Full set: 100 questionsFor custom actions intended for reuse across an enterprise, the best practice is to create a separate, dedicated repository for each action. This approach decouples the action from any single application, promoting wider adoption and reusability. It allows each action to have its own versioning, release cycle, and access controls, treating it as an independent software component. This modularity simplifies maintenance and allows teams to consume specific, stable versions of the actions they need.
B. creating a separate branch...: This tightly couples the action to a specific application's repository, making it difficult to version and reuse independently.
C. creating a single repository for all...: This forces all actions to share the same versioning scheme, which is inflexible and complicates updates to individual actions.
D. including custom actions...in the same repository...: This is appropriate for local actions used by only one workflow, not for shared actions that other teams need to reference.
GitHub Docs
"About custom actions". In the section "Choosing a location for your action
" it describes the benefits of creating a dedicated repository for an action that you plan to share with others.
GitHub Docs
"Reusing workflows". While about workflows
the principle of storing reusable components in their own repositories for versioning and discovery is a core concept that also applies to actions.
Keep practicing
Take the free GH-200 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-200 practice questions
- Question 1Which action type should be used to bundle a series of run steps into a reusable custom a…
- Question 2As a developer, which workflow steps should you perform to publish an image to the GitHub…
- Question 3Where should workflow files be stored to be triggered by events in a repository?
- Question 5Which default environment variable specifies the branch or tag that triggered a workflow?
- Question 6As a developer, what is the safest way to reference an action to prevent modification of …
- Question 7Without the need to use additional infrastructure, what is the simplest and most maintain…
