Flashcardsfor IT Certifications

D3: Action Structure & Metadata

GH-200 GitHub Actions exam practice questions · 10 flashcards

Question
Required metadata file?
1 / 10

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

Last updated: · Report an error on this page

Show all 10 Action Structure & Metadata practice questions and answers
  1. Required metadata file?
    action.yml or action.yaml in the action's root.
  2. action.yml keys?
    name, description, author, inputs, outputs, runs, branding.
  3. runs for JS action?
    using: node20/node24, main: dist/index.js, optional pre/post.
  4. runs for Docker action?
    using: docker, image: Dockerfile or docker://image, args, entrypoint.
  5. runs for composite action?
    using: composite, steps: (each run step needs shell:).
  6. Input naming in code?
    Inputs available as INPUT_<NAME> env vars or core.getInput().
  7. Outputs in composite action?
    outputs.<name>.value: ${{ steps.x.outputs.y }}.
  8. Branding?
    icon and color for Marketplace display.
  9. Workflow commands in actions?
    Use toolkit or echo commands (::error::, GITHUB_OUTPUT).
  10. Directory structure?
    Action in repo root for Marketplace; or subfolder referenced as owner/repo/path@ref.