Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ inputs:
description: "Show full JSON output from Claude Code. WARNING: This outputs ALL Claude messages including tool execution results which may contain secrets, API keys, or other sensitive information. These logs are publicly visible in GitHub Actions. Only enable for debugging in non-sensitive environments."
required: false
default: "false"
npmrc_config:
description: "Content to write to ~/.npmrc before installing dependencies. Useful for configuring private npm registries in air-gapped or enterprise environments."
required: false
default: ""
plugins:
description: "Newline-separated list of Claude Code plugin names to install (e.g., 'code-review@claude-code-plugins\nfeature-dev@claude-code-plugins')"
required: false
Expand Down Expand Up @@ -280,6 +284,7 @@ runs:
INPUT_PATH_TO_BUN_EXECUTABLE: ${{ inputs.path_to_bun_executable }}
INPUT_SHOW_FULL_OUTPUT: ${{ inputs.show_full_output }}
DISPLAY_REPORT: ${{ inputs.display_report }}
INPUT_NPMRC_CONFIG: ${{ inputs.npmrc_config }}
INPUT_PLUGINS: ${{ inputs.plugins }}
INPUT_PLUGIN_MARKETPLACES: ${{ inputs.plugin_marketplaces }}
PATH_TO_CLAUDE_CODE_EXECUTABLE: ${{ inputs.path_to_claude_code_executable }}
Expand Down
7 changes: 7 additions & 0 deletions src/entrypoints/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ async function run() {
baseBranch = prepareResult.branchInfo.baseBranch;
prepareCompleted = true;

// Write .npmrc if configured (for air-gapped / enterprise environments)
if (process.env.INPUT_NPMRC_CONFIG) {
const npmrcPath = `${process.env.HOME}/.npmrc`;
await appendFile(npmrcPath, `\n${process.env.INPUT_NPMRC_CONFIG}\n`);
console.log("Wrote custom .npmrc configuration");
}

// Phase 2: Install Claude Code CLI
await installClaudeCode();

Expand Down