Skip to content

support custom token (PAT/GitHub App) without relying on GITHUB_TOKEN #305

@kec-flatpay

Description

@kec-flatpay

Feature request for crowdin/github-action: please support a custom GitHub token input/env var (e.g. github_token or CROWDIN_GITHUB_TOKEN) instead of only using GITHUB_TOKEN.

In some orgs, the default workflow token is blocked from creating PRs (403: “GitHub Actions is not permitted to create or approve pull requests”), and overriding GITHUB_TOKEN is constrained because GITHUB_* variables are reserved. This prevents using a PAT/GitHub App token for PR creation in locked-down environments.

Ideally: if a custom token is provided, use it for GitHub API calls; otherwise fall back to the default token.

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