[BUG]: CreateRepo
See original GitHub issueDescribe the bug
Cannot get past the CreateRepo action when creating a new project. I’m getting the error message - “Although you appear to have the correct authorization credentials, the microsoft
organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/”
Component (please tell us which flow or app you are experiencing issues with): Solution - Power Platform Github ALM Version - 1.0.0.63 Flow - CreateProject > CreateRepo
To Reproduce Steps to reproduce the behavior:
- Go to PowerOps canvas app
- Click on ‘+ New Project’
- Navigated to run history for CreateRepo
- See failed run
Expected behavior Able to create new repo using the microsoft/powerplatform-actionstemplate
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Prior to this there was an error about You need admin access to the organization before adding a repository to it., which was odd as the user clearly has owner access to the GitHub organisation. Same inputs as the screenshot.
I’ve created a Github personal access token and ran the New-GitHubRespositoryFromTemplate command using the PowerShellForGitHub module and that works -
Not sure what I’m missing here. Thank you for your help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
@navin22 thank you for your reply. Yesterday I’ve forked the template git repo into our own organization repo and removed the third party access restrictions to test and that worked. I’ll point to poweralm/repotemplate instead for moving forward until there is resolution 😃
@bkl-taerimhan this is happening because microsoft org is not allowing the “Microsoft Power Platform” oauth app access and third party access is restricted by default.
Until that’s workaround. You can use the
poweralm/repotemplate
as the template repository. In “Power Platform Github ALM” component you can edit the environment variablecat_TemplateRepoName
current value topoweralm/repotemplate
.