spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / tests / fixtures / environments / github-action-env.ts
20 lines · 634 BRaw
1import { SENDING_ENV } from './sending-env.js'
2
3/**
4 * SENDING_ENV inside a GitHub Actions workflow running the Claude Code
5 * action from a pull request.
6 */
7export const GITHUB_ACTION_ENV: Readonly<Record<string, string>> = {
8 ...SENDING_ENV,
9 CI: 'true',
10 GITHUB_ACTIONS: 'true',
11 GITHUB_EVENT_NAME: 'pull_request',
12 RUNNER_OS: 'Linux',
13 RUNNER_ENVIRONMENT: 'github-hosted',
14 GITHUB_ACTION_PATH: '/runner/_actions/anthropics/claude-code-action/v1',
15 GITHUB_ACTOR_ID: '11',
16 GITHUB_REPOSITORY_ID: '22',
17 GITHUB_REPOSITORY_OWNER_ID: '33',
18 CLAUDE_CODE_ENTRYPOINT: 'claude-code-github-action',
19 CLAUDE_CODE_ACTION: '1',
20}