{"name":"GITHUB_ACTOR","slug":"github-actor","family":"env","title":"Environment variables","noun":"environment variable","description":"When Claude Code is launched in diskless mode, your `statusLine` and `fileSuggestion` commands no longer run","description_source":"entry","described_by":{"version":"2.1.284","anchor":"diskless-launch-mode-skips-statusline-and-filesuggestion-com"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.295","anchor":"skip-some-identity-lookups-in-remote-mode","heading":"Username lookup is skipped in one more case","line":"One way Claude Code looks up your username now returns nothing in some modes instead of reading `GITHUB_ACTOR`, `USER` or `USERNAME`","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text"},{"version":"2.1.284","anchor":"diskless-launch-mode-skips-statusline-and-filesuggestion-com","heading":"Diskless launches skip status line and file suggestion commands","line":"When Claude Code is launched in diskless mode, your `statusLine` and `fileSuggestion` commands no longer run","released_at":"2026-09-28 17:11:59","reason":"found in this entry's text"},{"version":"2.1.140","anchor":"user-identity-added-to-branch-pattern-context","heading":"User Identity Added to Branch Pattern Context","line":null,"released_at":"2026-05-12 19:50:28","reason":"found in this entry's text"}],"entries_total":3,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"GITHUB_ACTION_INPUTS","slug":"github-action-inputs","description":"Claude Code logs whether `GITHUB_ACTION_INPUTS` is set and its length (`githubActionInputsPresent`, `githubActionInputsLength`) on the `tengu_init` analytics event. The value itself is not sent."},{"name":"GITHUB_ACTION_PATH","slug":"github-action-path","description":"When `GITHUB_ACTIONS` is true, the part of `GITHUB_ACTION_PATH` after `claude-code-action\/` is sent in analytics as `githubActionRef`. The path, and its prefix up to `\/_actions` when it contains `\/_actions\/`, are also on the write-deny list of the filesystem sandbox Claude Code builds for Bash commands under subprocess env scrubbing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`)."},{"name":"GITHUB_ACTIONS","slug":"github-actions","description":"CLAUDE_CODE_SUBAGENT_MODEL_FORCE joins a list of passed-on env vars, and RUNNER_ENVIRONMENT is added next to GITHUB_ACTIONS"},{"name":"GITHUB_ACTOR_ID","slug":"github-actor-id","description":"When `GITHUB_ACTIONS` is true, included as `actorId` in the GitHub Actions metadata Claude Code attaches to its analytics user data and events."},{"name":"GITHUB_ENTERPRISE_TOKEN","slug":"github-enterprise-token","description":"Fallback for `GH_ENTERPRISE_TOKEN`: the token Claude Code uses for GitHub API calls to a non-`github.com` host that matches `GH_HOST`, such as the pull request status lookup for the current branch. The auto-mode `gh` queries for repo visibility and branch protection run with it unset, and the agent-proxy `gh` shim runs the real `gh` directly, bypassing the session relay, when it is set."},{"name":"GITHUB_ENV","slug":"github-env","description":"When set, a path derived from it (the runner's file-commands location) is added to the write-deny list of the filesystem sandbox Claude Code builds for Bash commands under subprocess env scrubbing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`), so sandboxed commands cannot write there."},{"name":"GITHUB_EVENT_NAME","slug":"github-event-name","description":"When `GITHUB_ACTIONS` is true, sent in analytics as `githubEventName`."},{"name":"GITHUB_EVENT_PATH","slug":"github-event-path","description":"Read when subprocess environment scrubbing is on (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`). The file it points at is added to the sandbox's `denyWrite` list, so commands Claude runs cannot modify the GitHub Actions event payload."},{"name":"GITHUB_REPOSITORY","slug":"github-repository","description":"When `GITHUB_ACTIONS` is true, included as `repository` in the GitHub Actions metadata of the analytics user data Claude Code builds."},{"name":"GITHUB_REPOSITORY_ID","slug":"github-repository-id","description":"When `GITHUB_ACTIONS` is true, included as `repositoryId` in the GitHub Actions metadata Claude Code attaches to its analytics user data and events."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/github-actor","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}