GITHUB-ACTIONS · Question #56
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?
The correct answer is B. Add the check_run webhook event as a trigger for the workflow when the code quality integration. The check_run event is triggered when a check (such as a code quality check) completes, including when the status of a check changes. By adding this event as a trigger, you can initiate a follow-up workflow when the code quality integration finishes its checks.
Question
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?
Options
- AAdd the workflow_run webhook event as a trigger for the workflow for the code quality integration
- BAdd the check_run webhook event as a trigger for the workflow when the code quality integration
- CAdd the pull_request webhook event as a trigger for the workflow when the code quality integration
- DAdd the deployment webhook event as a trigger for the workflow when the code quality integration
How the community answered
(42 responses)- A10% (4)
- B67% (28)
- C19% (8)
- D5% (2)
Explanation
The check_run event is triggered when a check (such as a code quality check) completes, including when the status of a check changes. By adding this event as a trigger, you can initiate a follow-up workflow when the code quality integration finishes its checks.
Topics
Community Discussion
No community discussion yet for this question.