osdc / accord

a declarative way to manage discord
7 stars 42 forks source link

give write permissions to linting job #47

Closed glokta1 closed 1 year ago

glokta1 commented 1 year ago

related to #44

glokta1 commented 1 year ago

Despite explicitly giving write permissions to GITHUB_TOKEN, the job is run with read permissions as shown below: image I think this is related to:

You can use the permissions key to add and remove read permissions for forked repositories, but typically you can't grant write access.

source

Afaik, it would require the workaround given in the docs linked above

The exception to this behavior is where an admin user has selected the Send write tokens to workflows from pull requests option in the GitHub Actions settings. For more information, see "Managing GitHub Actions settings for a repository."