$GITHUB_TOKEN is the access token for a organisation installation
I would like to GET the branch protection and maybe PATCH it later, but I get:
$ curl -H ‘Accept: application/vnd.github.loki-preview+json’ -H “Authorization: token $GITHUB_TOKEN” https://api.github.com/repos///branches/master/protection
“message”: “Resource not accessible by integration”,
I have tested many permissions combination but I always get the error.
The application permissions are currently:
Repository administration -> ReadWrite
Pull requests -> ReadWrite
Repository contents -> ReadWrite
Issues -> Read
Commit statuses -> ReadWrite
Do I miss something ? Does this API endpoint is supported ? if no, any ETA ?