nerdexam
Microsoft

GH-200 · Question #64

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. Third-party code quality providers that integrate via the GitHub Checks API create and update 'check runs.' The check_run webhook event fires whenever a check run is created, completed, or has its status changed. This allows a follow-up workflow to be triggered precisely when the

Author and Maintain Workflows

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

(32 responses)
  • A
    3% (1)
  • B
    75% (24)
  • C
    13% (4)
  • D
    9% (3)

Explanation

Third-party code quality providers that integrate via the GitHub Checks API create and update 'check runs.' The check_run webhook event fires whenever a check run is created, completed, or has its status changed. This allows a follow-up workflow to be triggered precisely when the external tool finishes its analysis. workflow_run (A) triggers based on another GitHub Actions workflow, not an external Checks API integration. pull_request (C) triggers on PR actions, not on check run completion. deployment (D) is unrelated to code quality checks.

Topics

#GitHub Actions events#Checks API#Workflow triggering#Third-party integration

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice