GitHub Foundations — Question 12
As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?
Answer options
- 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
Correct answer: B
Explanation
The correct choice, B, is accurate because the check_run webhook event is specifically designed to trigger workflows in response to checks being completed. Options A, C, and D do not align with the functionality of the Checks API and would not effectively trigger the desired follow-up workflow in this scenario.