A team added a new dependency-review agent to an existing multi-agent pull request workflow. The pull request now shows the required check dependency-review-agent / scan as pending, but no run appears for the new agent. Which option best explains the pending check? Select one answer.
Pull request: #312
Base branch: main
Changed files:
src/agent-router.ts
package-lock.json
Required checks:
planner-agent / plan: success
test-agent / test: success
dependency-review-agent / scan: pending
Workflow file: .github/workflows/dependency-review-agent.yml
Current branch contains workflow file: yes
Default branch contains workflow file: no
Event:
pull_request.synchronize
Message:
Workflow was not run because the workflow file was not found on the default branch.Choose an answer
Tap an option to check your answer.
Correct answer: The workflow is not on default branch.
Why this is the answer
The correct answer is "The workflow is not on default branch." GitHub Actions workflows triggered by pullrequest events, especially for required status checks, often need to exist on the default branch (e.g., main) to be discovered and executed for pull requests originating from other branches. The message "Workflow was not run because the workflow file was not found on the default branch" directly confirms this. "The dependency agent lacks packages permission" is incorrect because a permissions issue would likely result in a failed run, not a pending state with no run initiated. "The pull request skipped required checks" is incorrect; if checks were skipped, they wouldn't appear as pending. "The test agent cancelled dependent jobs" is incorrect as there's no indication of the test agent having such control or that any job was cancelled.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed