mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-22 03:18:54 +08:00
ci: pass allowed tools through claude args (#1552)
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
|||||||
anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }}
|
anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }}
|
||||||
anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }}
|
anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }}
|
||||||
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
||||||
allowed_tools: "LS,Read"
|
claude_args: '--allowedTools "LS,Read"'
|
||||||
|
|
||||||
- name: Verify inline prompt output
|
- name: Verify inline prompt output
|
||||||
run: |
|
run: |
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }}
|
anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }}
|
||||||
anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }}
|
anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }}
|
||||||
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
||||||
allowed_tools: "LS,Read"
|
claude_args: '--allowedTools "LS,Read"'
|
||||||
|
|
||||||
- name: Verify prompt file output
|
- name: Verify prompt file output
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }}
|
||||||
path_to_claude_code_executable: /home/runner/.local/bin/claude
|
path_to_claude_code_executable: /home/runner/.local/bin/claude
|
||||||
path_to_bun_executable: /home/runner/.bun/bin/bun
|
path_to_bun_executable: /home/runner/.bun/bin/bun
|
||||||
allowed_tools: "LS,Read"
|
claude_args: '--allowedTools "LS,Read"'
|
||||||
|
|
||||||
- name: Verify custom executables worked
|
- name: Verify custom executables worked
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user