RoadieHQ / roadie-backstage-plugins

All Backstage plugins created by Roadie.
https://roadie.io
Apache License 2.0
268 stars 394 forks source link

Github token and scope not being requested/add correctly to the GH request for the read me file #1119

Open renatafaracobah opened 1 year ago

renatafaracobah commented 1 year ago

Expected Behavior

Current Behavior

Steps to Reproduce

  1. Login to backstage using GitHub enterprise credentials

  2. Given an entity located in a public repository in GitHub (github.com), add the Readme card to that entity’s page.

  3. Go to the page: it shows the Readme card with the error: Bad credentials. bad-credentials-public-repo

  4. Login to backstage using the GitHub credentials and configure the scope to only read:user

  5. Go to an entity page that has the Readme card configured: it shows the card with the error: Not Found. token-only-user-scope

  6. If you go to the same page, now adding the repo scope to the X-Oauth-Scopes header, the card is shown correctly: token-repo-scope

Possible Solution

Context

We are using the GH Insights Roadie plugin to display the Readme file for several entities (components, systems, domains, templates) to encourage our users to go to the docs and find more information.

Your Environment

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ltdonner-bah commented 10 months ago

unstale please

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ltdonner-bah commented 8 months ago

unstale please

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ltdonner-bah commented 6 months ago

unstale please

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jladd-bah commented 4 months ago

unstale please

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jladd-bah commented 2 months ago

unstale please

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jladd-bah commented 1 week ago

unstale please