navikt / github-app-token-generator

GitHub action for generating an installation token for a GitHub App
MIT License
35 stars 18 forks source link

Grant access to only the current repository #3

Open gr2m opened 3 years ago

gr2m commented 3 years ago

I just thought about creating this very action when I found yours 👍🏼

I wonder if the action should create an installation access token that only has access to the current repository? Or you leave the default behavior as is, but pass through the repositories, repository_ids, permissions argument? https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app

by the way, the application/vnd.github.machine-man-preview+json preview header no longer needs to be set, it graduated a while ago