Flashcardsfor IT Certifications

D1: Workflow Triggers & Events

GH-200 GitHub Actions exam practice questions · 12 flashcards

Question
Where do workflow files live?
1 / 12

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

Last updated: · Report an error on this page

Show all 12 Workflow Triggers & Events practice questions and answers
  1. Where do workflow files live?
    .github/workflows/*.yml or *.yaml in the repository.
  2. on: push with filters?
    branches, branches-ignore, tags, paths, paths-ignore limit when push triggers.
  3. on: pull_request activity types?
    opened, synchronize, reopened by default; others like labeled, closed via types:.
  4. pull_request vs pull_request_target?
    pull_request runs in PR merge context with read token for forks; pull_request_target runs in base repo context with secrets — dangerous with untrusted code.
  5. on: schedule?
    POSIX cron in UTC; runs on default branch; minimum interval 5 minutes.
  6. on: workflow_dispatch?
    Manual trigger from UI/API/CLI with optional inputs.
  7. on: repository_dispatch?
    Webhook trigger via API with custom event_type and client_payload.
  8. on: workflow_run?
    Trigger after another workflow completes/requested.
  9. on: workflow_call?
    Makes a workflow reusable by other workflows.
  10. Other repository events?
    issues, issue_comment, release, create, delete, label, discussion, merge_group, deployment_status.
  11. Multiple events?
    on: [push, pull_request] or mapping form with filters per event.
  12. Scheduled workflow disabled after inactivity?
    Public repo scheduled workflows auto-disable after 60 days without repo activity.