A Copilot-generated draft pull request updates only the agent prompt and task contract for a refactor. Branch protection requires the validate-agent-contract / contract check before merge. The check remains pending. Which option best explains the behaviour? Select one answer.
Workflow: validate-agent-contract
Event: pull_request
Base branch: main
Actor: github-copilot[bot]
Changed files:
.github/copilot/tasks/checkout-refactor.md
docs/agent-contracts/checkout-refactor.md
Workflow path filter:
paths:
- "src/**"
- ".github/workflows/**"
Result:
Workflow was skipped because no changed files matched the configured paths.
Required check:
validate-agent-contract / contract
Status:
Expected — Waiting for status to be reportedChoose an answer
Tap an option to check your answer.
Correct answer: The path filter skipped the required workflow.
Why this is the answer
The validate-agent-contract workflow has a path filter configured to run only when changes occur in src/ or .github/workflows/. The pull request, however, only modifies files in .github/copilot/tasks/ and docs/agent-contracts/. Since none of the changed files match the defined path filter patterns, the workflow is skipped entirely. Consequently, the required validate-agent-contract / contract check remains pending because the workflow that would report its status never executed. Draft pull requests do not inherently disable required checks; they can still run. The bot actor's permissions are not relevant to a workflow being skipped by a path filter. Manual dispatch approval is not applicable here as the workflow is triggered by a pullrequest event, not a manual dispatch.
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