GitHub Target

You can define a GitHub target to be used with GitHub Dynamic Secret.

Create a GitHub Target in the CLI

To create a GitHub target from the CLI, run the following command:

akeyless target create github \
--name <target name> \
--github-app-id <Github application ID> \
--github-app-private-key <Github application private key (base64-encoded key)> \
--github-base-url https://api.github.com

Where:

  • name: A unique name of the target. The name can include the path to the virtual folder where you want to create the new target, using slash / separators. If the folder does not exist, it will be created together with the target.

  • github-app-id: Provide the username of the Docker repository user with privileges to create temporary access tokens.

  • github-app-private-key: The GitHub application private key.

  • github-base-url: Provide the GitHub base URL, default is https://api.github.com/.

You can find the complete list of parameters for this command in the CLI Reference - Akeyless Targets section.

Create a GitHub Target in the Console

  1. Log in to the Akeyless Console, and go to Targets > New > Infra > GitHub.

  2. Define a Name of the target, and specify the Location as a path to the virtual folder where you want to create the new target, using slash / separators. If the folder does not exist, it will be created together with the target.

  3. Select a Protection key with a Customer Fragment to enable Zero-Knowledge and click Next.
    For more information about Zero-Knowledge, see Implement Zero Knowledge.

  4. Define the remaining parameters as follows:

  1. Click Finish.