Flashcardsfor IT Certifications

D1: Workflow Commands & Environment Variables

GH-200 GitHub Actions exam practice questions · 11 flashcards

Question
env: levels?
1 / 11

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 11 Workflow Commands & Environment Variables practice questions and answers
  1. env: levels?
    Workflow, job, step level; narrower scope overrides.
  2. Default environment variables?
    GITHUB_SHA, GITHUB_REF, GITHUB_REPOSITORY, GITHUB_WORKSPACE, RUNNER_OS, GITHUB_RUN_ID, CI=true.
  3. Setting env var for later steps?
    echo "NAME=value" >> "$GITHUB_ENV".
  4. Setting step output?
    echo "name=value" >> "$GITHUB_OUTPUT".
  5. Adding to PATH?
    echo "/path" >> "$GITHUB_PATH".
  6. Masking a value?
    echo "::add-mask::$VALUE".
  7. Annotations?
    ::error file=x,line=1::msg, ::warning::, ::notice:: create annotations.
  8. Grouping log lines?
    ::group::Title ... ::endgroup::.
  9. Debug logging?
    ::debug:: messages shown when ACTIONS_STEP_DEBUG secret/variable is true.
  10. Deprecated set-output/set-env?
    Replaced by GITHUB_OUTPUT and GITHUB_ENV files.
  11. Stop processing commands?
    ::stop-commands::token to prevent untrusted output being interpreted.