GitHubGithub GH-600 Agentic AI Developer Certification ·EN ·Updated 15 Jul 2026

A team adds a reusable validation workflow for Copilot-generated pull requests. The workflow should upload logs on failure, avoid publishing secrets, and keep the required check failed when validation fails. Evaluate the following statements. 1. The workflow uploads diagnostics when validation fails. 2. Printing the environment is safe because secrets are masked. 3. The final step helps preserve a failed required check.

name: validate-agent-output

on:
  pull_request:
    branches:
      - main

permissions:
  contents: read

jobs:
  test:
    runs-on: ubuntu-latest
    env:
      API_TOKEN: ${{ secrets.TEST_API_TOKEN }}
    steps:
      - uses: actions/checkout@v4

         - name: Run validation
           id: validation
           run: |
             mkdir -p diagnostics
             npm ci
             npm test 2>&1 | tee diagnostics/output.log

         - name: Upload diagnostics
           if: failure()
           uses: actions/upload-artifact@v4
           with:
             name: validation-diagnostics
             path: diagnostics/

         - name: Print environment for debugging
           if: failure()
           run: env | sort

         - name: Preserve failure
           if: steps.validation.outcome == 'failure'
           run: exit 1

Choose an answer

Tap an option to check your answer.

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
✓ Verified by ExamRoll editorial · Updated 15 July 2026
All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product