Skip to content
Open
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
14 changes: 11 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ inputs:
description: "Enable commit signing using GitHub's commit signature verification. When false, Claude uses standard git commands"
required: false
default: "false"
exec_user:
description: "The user to execute claude-code as. If not set, the action will run as the default user."
required: false
default: ""
experimental_allowed_domains:
description: "Restrict network access to these domains only (newline-separated). If not set, no restrictions are applied. Provider domains are auto-detected."
required: false
Expand Down Expand Up @@ -193,9 +197,13 @@ runs:
if: steps.prepare.outputs.contains_trigger == 'true'
shell: bash
run: |

# Run the base-action
bun run ${GITHUB_ACTION_PATH}/base-action/src/index.ts
EXEC_USER=${{ inputs.exec_user }}
if [ -n "$EXEC_USER" ]; then
BUN_PATH=$(which bun)
sudo -E -u $EXEC_USER env PATH="$PATH" $BUN_PATH run ${GITHUB_ACTION_PATH}/base-action/src/index.ts
else
bun run ${GITHUB_ACTION_PATH}/base-action/src/index.ts
fi
env:
# Base-action inputs
CLAUDE_CODE_ACTION: "1"
Expand Down