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?
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:
However, the workflow failed with the following error:
I verified once more via
https://github.com/enterprises/YOUR-ENTERPRISE/settings/installationsthat the GitHub App is indeed installed on the enterprise. The GitHub App has the following permissions:Is there anything missing from the setup steps?