From 97338d10aea286e88f47564343c414596e807363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schr=C3=B6der?= Date: Tue, 10 Jan 2023 23:15:47 +0100 Subject: [PATCH] feat: Document github token permission --- Readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Readme.md b/Readme.md index fb0b86da..f3aedf17 100644 --- a/Readme.md +++ b/Readme.md @@ -32,5 +32,22 @@ on: Triggering the action on anything other than `pull_request` will cause a failure. +## Permissions + +In case the action fails with the following error: + +``` +Event name: pull_request +Error: Resource not accessible by integration +``` + +You can fix this, by adding the following to your workflow: + + +```yaml +permissions: + pull-requests: read +``` + ## License The scripts and documentation in this project are released under the [MIT License](./LICENSE)