gha-get-token

command module
v0.0.0-...-eba326e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 13 Imported by: 0

README

Deprecated in favor of https://github.com/external-secrets/external-secrets/blob/main/docs/snippets/generator-github.yaml

github token getter

A small application written in Golang built to ease the process of GitHub token retrieval

Prerequisite:

  • Create GitHub application, download private PEM key
  • Install GitHub application to your organization
  • Pass the following data to the getter
  • application id, installation id, location of the private key, name of k8s secret where it will save and update the access token

E.G:

gha_get_token -a 12345 -i 123123123 -k /tmp/gha/private-key.pem -n default -s gha-test-token

Flags:

  • "-a", default: "" - "Github app ID."
  • "-i", default: 0 - "Github app installation ID."
  • "-k", default: "" - "Path to github app private key file."
  • "-n", default: "default" - "K8S secret namespace."
  • "-s", default: "" - "K8S secret name."
  • "-t", default: 600 - "Key expiration time in seconds."
  • "-u", default: "token", "K8S token user name.")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL