Skip to content

Can't Create a token for an enterprise installation #373

@osakiy

Description

@osakiy

https://github.com/actions/create-github-app-token#create-a-token-for-an-enterprise-installation

Has anyone attempted to generate an enterprise-level token using the above?

I installed a GitHub App on my own enterprise and executed the sample workflow.
I modified the sample code by changing one line:

- uses: actions/create-github-app-token@v3
+ uses: actions/create-github-app-token@952a2a7073df6bfa5f49bc469ec895b6ec1acea4

However, the workflow failed with the following error:

Run actions/create-github-app-token@952a2a7073df6bfa5f49bc469ec895b6ec1acea4
Creating enterprise installation token for enterprise "xxxx".
Failed to create token for enterprise "xxxx" (attempt 1): No enterprise installation found matching the enterprise slug "xxxx".
Error: No enterprise installation found matching the enterprise slug "xxxx".
...

I verified once more via https://github.com/enterprises/YOUR-ENTERPRISE/settings/installations that the GitHub App is indeed installed on the enterprise. The GitHub App has the following permissions:

Read access to enterprise copilot metrics, enterprise organization installation repositories, enterprise organization installations, and enterprise people

Is there anything missing from the setup steps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions