A team says Copilot-generated pull requests are validated by CI. A draft pull request updates only Markdown runbooks and a prompt template. The required check named agent-sdlc-validation stays pending and blocks merge. Which option best explains the anti-pattern?
Workflow: agent-sdlc-validation
Event: pull_request
Base branch: main
Changed files:
docs/runbooks/agent-review.md
.github/prompts/refactor.prompt.md
Workflow file:
on:
pull_request:
branches:
- main
paths:
- "src/**"
- "package.json"
Result: workflow skipped because no changed files matched paths
Required check: agent-sdlc-validation
Check state: Pending
Merge status: BlockedChoose an answer
Tap an option to check your answer.
Correct answer: Path filters excluded files that still need validation.
Why this is the answer
The agent-sdlc-validation workflow is configured with path filters (src/, package.json) that specify it should only run when changes occur in those particular directories or files. The draft pull request, however, only modifies docs/runbooks/agent-review.md and .github/prompts/refactor.prompt.md. Since these paths do not match the workflow's defined path filters, the workflow is skipped. Because agent-sdlc-validation is a required check, its skipped (pending) state blocks the merge. The pull request's write permissions are not relevant here, as the issue is with workflow execution, not access. Merge conflicts would typically show a different status, and dependency installation issues would imply the workflow started but failed, which isn't the case here.
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