Skip to content

Commit 69b20b2

Browse files
authored
Update "Receiving webhooks with the GitHub CLI" docs to ensure the user has the right scopes (github#34684)
1 parent 0884e03 commit 69b20b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

content/developers/webhooks-and-events/webhooks/receiving-webhooks-with-the-github-cli.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ When you make changes to your integration code, running the code in a local envi
3333
gh extension install cli/gh-webhook
3434
```
3535

36+
1. If you want to forward organization webhooks, add the `admin:org_hook` scope to your {% data variables.product.prodname_cli %} login so you have the required permissions.
37+
38+
```sh
39+
gh auth refresh --scopes admin:org_hook
40+
```
3641

3742
1. Start your application locally, and take a note of the URL where it's expecting to receive webhooks. This guide assumes that your application is listening for webhook events at `http://localhost:3000/webhook`.
3843

0 commit comments

Comments
 (0)