QuestionQ5

Consume and troubleshoot workflows

As a developer, you must integrate a GitHub Actions workflow with a third-party code-quality provider that uses the Checks API. How should you initiate a follow-up workflow?

  • A Add the workflow_run webhook event as a trigger for the workflow for the code quality integration name
  • B Add the check_run webhook event as a trigger for the workflow when the code quality integration is completed
  • C Add the pull_request webhook event as a trigger for the workflow when the code quality integration is synchronized
  • D Add the deployment webhook event as a trigger for the workflow when the code quality integration is completed
Explanation

A third-party Checks API integration creates and updates a check run. GitHub Actions can trigger a workflow from the check_run event, including when the check run is completed, which provides the appropriate completion signal for the code-quality integration.

Learn more

Community Discussion

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