QuestionQ22

Author and maintain actions

What are two reasons for keeping an action in its own repository rather than bundling it with other application code? (Each correct answer provides a complete solution. Choose two.)

Choose two
  • A It makes the action.yml file optional.
  • B It makes it easier for the GitHub community to discover the action.
  • C It widens the scope of the code base for developers fixing issues and extending the action.
  • D It decouples the action’s versioning from the versioning of other application code.
  • E It allows sharing workflow secrets with other users.
Explanation

Keeping an action in a separate repository makes it easier for the GitHub community to discover and allows the action to be versioned independently of other application code. A separate repository narrows, rather than widens, the codebase scope for developers maintaining the action. Managing custom actions — GitHub Docs

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!