From 5dd098c551607a7bf66e0123ca24ea259bbeb963 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Fri, 7 Aug 2026 16:57:29 +0200 Subject: [PATCH] ci: pass allowed tools through claude args (#1552) --- .github/workflows/test-base-action.yml | 4 ++-- .github/workflows/test-custom-executables.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-base-action.yml b/.github/workflows/test-base-action.yml index cec3d73d..0688d2d8 100644 --- a/.github/workflows/test-base-action.yml +++ b/.github/workflows/test-base-action.yml @@ -31,7 +31,7 @@ jobs: anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }} anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }} anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }} - allowed_tools: "LS,Read" + claude_args: '--allowedTools "LS,Read"' - name: Verify inline prompt output run: | @@ -90,7 +90,7 @@ jobs: anthropic_federation_rule_id: ${{ vars.ANTHROPIC_FEDERATION_RULE_ID }} anthropic_organization_id: ${{ vars.ANTHROPIC_ORGANIZATION_ID }} anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }} - allowed_tools: "LS,Read" + claude_args: '--allowedTools "LS,Read"' - name: Verify prompt file output run: | diff --git a/.github/workflows/test-custom-executables.yml b/.github/workflows/test-custom-executables.yml index 0276411a..432d39e5 100644 --- a/.github/workflows/test-custom-executables.yml +++ b/.github/workflows/test-custom-executables.yml @@ -59,7 +59,7 @@ jobs: anthropic_service_account_id: ${{ vars.ANTHROPIC_SERVICE_ACCOUNT_ID }} path_to_claude_code_executable: /home/runner/.local/bin/claude path_to_bun_executable: /home/runner/.bun/bin/bun - allowed_tools: "LS,Read" + claude_args: '--allowedTools "LS,Read"' - name: Verify custom executables worked run: |