Skip to content

Commit

Permalink
docs: Add missing webhook secret key used for GitHub EventSource (arg…
Browse files Browse the repository at this point in the history
…oproj#1344)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Sep 10, 2021
1 parent f10e80c commit 15ecf35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/eventsources/setup/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Example event-source yaml file is [here](https://github.com/argoproj/argo-events
1. Create an API token if you don't have one. Follow [instructions](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) to create a new GitHub API Token.
Grant it the `repo_hook` permissions.

1. Base64 encode your api token key.
1. Base64 encode your API token key.

echo -n <api-token-key> | base64

1. Create a secret called `github-access`.
1. Create a secret called `github-access` that contains your encoded GitHub API token. You can also include a secret key that is encoded with `base64` for your webhook if any.

apiVersion: v1
kind: Secret
Expand All @@ -45,6 +45,7 @@ Example event-source yaml file is [here](https://github.com/argoproj/argo-events
type: Opaque
data:
token: <base64-encoded-api-token-from-previous-step>
secret: <base64-encoded-webhook-secret-key>

1. Deploy the secret into K8s cluster.

Expand Down

0 comments on commit 15ecf35

Please sign in to comment.