Skip to content

Multiline input for allowed_tools #167

@int128

Description

@int128

It would be nice if allowed_tools accepts a multiline string.

Problem to solve

We use this action in monorepo. When I set a lot of tools, the workflow looks ugly. For example,

      - uses: anthropics/claude-code-action@beta
        with:
          allowed_tools:  Bash(pnpm:*),Bash(yarn:*),Bash(npm:*),Bash(go:*),Bash(make:*),Bash(bundle:*),Bash(ruby:*),Bash(poetry:*),Bash(echo:*),Bash(git:*),Bash(gh:*)

It would be nice if it can be delared as follows:

      - uses: anthropics/claude-code-action@beta
        with:
          allowed_tools: |
            Bash(bundle:*)
            Bash(ruby:*)
            Bash(yarn:*)
            Bash(pnpm:*)
            #...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions