From 8e9f439e9f816f83466e6203f601788ff9c1ca7f Mon Sep 17 00:00:00 2001 From: Cristiano Betta Date: Wed, 24 Jun 2020 14:57:02 +0100 Subject: [PATCH] Clarify that PAT owner needs to have repo access Ran into an issue where I was using a user that did not have explicit access to the repo that I was trying to trigger an event for. I'm not sure if the user needs write access to the repo, but it seems logical to me that someone with `read` only access can not trigger GH actions. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76e6516..827f2d8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ A GitHub action to create a repository dispatch event. This action creates [`repository_dispatch`](https://developer.github.com/v3/repos/#create-a-repository-dispatch-event) events. The default `GITHUB_TOKEN` does not have scopes to do this so a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) is required. -If you will be dispatching to a public repository then you can use the more limited `public_repo` scope. + +If you will be dispatching to a public repository then you can use the more limited `public_repo` scope. Additionally, the user for which the PAT is created needs to have `write` access to the repository. ## Example