Skip to content

Ability to pass permissions as comma separated list #322

Open

Description

@chkp-sergeyl

The permission-{permission_name} has to be passed one by one to the action.
This makes it impossible to wrap this action with some other logic into a composite action, that can be distributed. For example, when the credentials of a github app are not taken from a github secret but from a different secret store.

If we pass permissions as a comma separated list we can have something like the following:

outputs:
    token: ${{ steps.generate-token.outputs.token }}

... other steps go here...

    - name: Generate a token
      id: generate-token
      uses: actions/create-github-app-token@v2
      with:
        app-id: ${{ steps.get-app-credentials.outputs.APP_ID_KEY }}
        private-key: ${{ steps.get-app-credentials.outputs.PRIVATE_KEY }}
        owner: ${{ inputs.repository_owner }}
        repositories: ${{ inputs.repositories }}
        permissions: ${{ inputs.permissions }}

Activity

  1. mcliment commented on May 25, 2026

    @mcliment

    This also limits the use of new permissions that may not be in the available settings, in my case, issue-types is not in the list of options.

  2. github-actions commented on Nov 23, 2026

    @github-actions

    This issue has been marked stale because it has been open for 180 days with no activity. Please close this issue if it is no longer needed. If this issue is still relevant and you would like it to remain open, simply update it within the next 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions