1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/github-app-token/0.1
Vincent Demeester d93795673c Update self reference from master to main 🧙
And update references to community, pipeline, etc. too.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2021-03-19 11:09:49 +00:00
..
samples Add Github APP token task 2020-09-29 12:55:51 +01:00
Dockerfile Add Github APP token task 2020-09-29 12:55:51 +01:00
github-app-token.yaml Add Github APP token task 2020-09-29 12:55:51 +01:00
README.md Update self reference from master to main 🧙 2021-03-19 11:09:49 +00:00

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.