Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Granting Sufficient Permissions to a Copilot Extension #16

Open
andrewlayer opened this issue Dec 18, 2024 · 3 comments
Open

Granting Sufficient Permissions to a Copilot Extension #16

andrewlayer opened this issue Dec 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@andrewlayer
Copy link

Describe the bug
In a fresh chat (and after hard refreshing the browser) we get the following issue:
Image

The error message seems to be indicating that the Github Copilot extension is asking for insufficient permissions when being installed. here are the permissions requested when installing the application:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Install buildwithlayer (You will receive a 40X error because we just use this app to test and intercept requests).
  2. Delete all existing chats, and start a new one with @buildwithlayer as the participant

Expected behavior
No error or warning. Also, we do not actually receive the content. Here is an example payload that we receive at our route with all these permissions enabled:

payload.json

As you can tell, the repo context is still redacted.

Desktop (please complete the following information):

  • Tested in github.com, on multiple browsers (arc, chrome)
  • Tested on mac (but unlikely to be the issue)

Additional context
This is is installed at both the personal and organizational level. My account is owned by an organization that has the same "all read permissions granted"

@andrewlayer andrewlayer added the bug Something isn't working label Dec 18, 2024
@theodoracheng
Copy link
Collaborator

theodoracheng commented Dec 19, 2024

@andrewlayer when testing in the browser, what page do you have open? That error is shown when a reference is passed that the extension does not have access to and is simply a warning.

I see the extension is installed at both the personal and organization level. Just to confirm, that means an org admin installed has installed the extension at the org account level?

@andrewlayer
Copy link
Author

andrewlayer commented Dec 20, 2024

So this happens anytime I open a new chat after having refreshed the browser and made a new chat. It only happens on the first message. It also happens for all extensions (I got the same issue with Docker and Mermaid Charts)

Yes, both the organization & the user of the account have the extension installed.

@theodoracheng
Copy link
Collaborator

@andrewlayer what page do you have open when refreshing the browser? When using the chat, we send an implicit resource to the extension based off of what is showing in the page. So if the extension doesn't have access to the resource on that page, it would show that error. If the extension is installed at the org admin and individual account level, that error should not show when those resources are displayed on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants