mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
d93795673c
And update references to community, pipeline, etc. too. Signed-off-by: Vincent Demeester <vdemeest@redhat.com> |
||
---|---|---|
.. | ||
samples | ||
Dockerfile | ||
github-app-token.yaml | ||
README.md |
GitHub app token
A task to get a user token from a github application
Workspaces
- secrets: A workspace containing the private key of the application.
Secret
This GitHub applications needs a private key to sign your request with JWT.
This example can be referred to create the secret
Refer this guide for setting up AWS Credentials and Region.
Params
- installation_id: The GitHub app installation ID eg:
123456
- application_id: The GitHub application ID. e.g:
123456
- private_key_path: The path to the key inside the secret workspace, default:
private.key
- token_expiration_minutes:: The time to expirations of the token in minutes default:
10
Install the Task
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/github-app-token/0.1/github-app-token.yaml
Usage
After creating the task with the parameters, you should have the token as result in the task which can be used in your pipeline to do github operations from the app as the target user.
See this taskrun example on how to start the task directly.