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…
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)- A92% (44)
- B2% (1)
- C2% (1)
- D4% (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
Community Discussion
No community discussion yet for this question.