A repository has multiple Copilot coding agent assignments open at the same time. The team wants a pull request workflow that detects overlapping file ownership, uploads a coordination report when the check fails, and keeps the pull request blocked until maintainers resolve the conflict. Which option completes the workflow?
name: multi-agent-coordination
on:
(Missing value 1):
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
detect-overlap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build coordination report
run: |
mkdir -p coordination
git diff --name-only origin/main...HEAD > coordination/changed-files.txt
python .github/scripts/detect_agent_overlap.py \
--changed-files coordination/changed-files.txt \
--open-agent-prs coordination/open-agent-prs.json \
> coordination/report.json
- name: Upload degraded-coordination report
if: (Missing value 2)
uses: (Missing value 3)
with:
name: degraded-coordination-${{ github.event.pull_request.number }}
path: coordination/
if-no-files-found: errorChoose an answer
Tap an option to check your answer.
Correct answer: Missing value 1 = pull_request Missing value 2 = failure() Missing value 3 = actions/upload-artifact@v4.
Why this is the answer
The correct option completes the GitHub Actions workflow to detect and report overlapping file ownership in pull requests. 1. Missing value 1 = pullrequest: The workflow needs to trigger when a pull request is opened or updated, so pullrequest is the correct event. push triggers on pushes to branches, workflowdispatch is for manual triggers, and mergegroup is for merge queue events, none of which fit the requirement for a pull request workflow. 2. Missing value 2 = failure(): The coordination report should only be uploaded if the detect-overlap job fails, indicating an issue. failure() correctly captures this condition. success() would upload on success, cancelled() on cancellation, and always() would upload regardless of job status, which is not the desired conditional behavior. 3. Missing value 3 = actions/upload-artifact@v4: This action is used to upload artifacts (like the coordination report) from a workflow run. actions/cache@v4 is for caching dependencies, and actions/download-artifact@v4 is for downloading artifacts, neither of which fulfills the requirement to upload the generated report.
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