Skip to content

permissions-config.json commandIdentifiers with spaces still require approval #4150

Description

@tko

Describe the bug

Following the examples in https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference#examples I'm trying to add "make fix" as command to be automatically allowed and it's not working, permission is always requested.

OTOH adding just "make" makes all make commands automatically allowed.

Affected version

GitHub Copilot CLI 1.0.71.

Steps to reproduce the behavior

  1. Write this in ~/.copilot/permissions-config.json
    {
      "locations": {
        "/some/path": {
          "tool_approvals": [
            {
              "kind": "commands",
              "commandIdentifiers": [
                "make fix",
                "make:fix",
                "make(fix)",
                "shell(make fix)",
                "bash(make fix)"
              ]
            }
          ]
        }
      }
    }
  2. cd /some/path && copilot
  3. say "run make fix"

Expected behavior

no questions asked

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions