nerdexam
Microsoft

GH-200 · Question #8

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

The correct answer is A. GITHUB_ACTOR. GITHUB_ACTOR is the default GitHub Actions environment variable that stores the username of the person or the name of the app that initiated the workflow run. For example, if a developer pushes code or manually triggers a workflow, GITHUB_ACTOR contains their GitHub username…

Implement and manage GitHub Actions workflows

Question

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

Options

  • AGITHUB_ACTOR
  • BGITHUB USER
  • CENV_ACTOR
  • DGITHUB_WORKFLOW_ACTOR

How the community answered

(48 responses)
  • A
    92% (44)
  • B
    2% (1)
  • C
    2% (1)
  • D
    4% (2)

Explanation

GITHUB_ACTOR is the default GitHub Actions environment variable that stores the username of the person or the name of the app that initiated the workflow run. For example, if a developer pushes code or manually triggers a workflow, GITHUB_ACTOR contains their GitHub username. GITHUB_USER, ENV_ACTOR, and GITHUB_WORKFLOW_ACTOR are not valid default GitHub environment variables.

Topics

#GitHub Actions#Environment Variables#Workflow Context#GITHUB_ACTOR

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice