nerdexam
GitHub

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.

GitHub Actions - Workflow Triggers and Integration

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)
  • A
    10% (4)
  • B
    67% (28)
  • C
    19% (8)
  • D
    5% (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

#Checks API#webhook events#check_run#third-party integration

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice