Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

GitHub App Manifest Flow for single file read/write permission

Solved! Go to Solution.

When creating a GitHub App using the manifest flow is there any way to specify the permission level (read/write/none) and path for `single_file` permissions?

 

I am currently investigating using the probot base template, which results in an app.yml manifest. However there is no entry for `single_file` in there. If I add 

single_file: write

or 

single_file: read

I get an error stating that name path is requried

 

 

manifest-error.png

 

 

 

Is there any way to include this in the manifest format?

1 Reply
Solution
Copilot Lvl 2
Message 2 of 2

Re: GitHub App Manifest Flow for single file read/write permission

After analyzing the update behavior for an existing test app, I noted that this can be achieved by:

 

default_permissions:
  # other permissions...
  single_file: write

and then in the standard metadata for the manifest (where name, url, description, etc. are):

singe_file_name: <path to the file>

and this gave the expected behavior via the manifest flow.