GitHub Target
You can define a GitHub target to be used with GitHub Dynamic Secret.
Create a GitHub Target from the CLI
To create a GitHub target from the CLI, run the following command:
akeyless create-github-target \
--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
.
Create a GitHub Target in the Akeyless Console
-
Log in to the Akeyless Console, and go to Targets > New > Infra Targets > GitHub.
-
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. -
Define the remaining parameters as follows:
-
App ID: Provide the GitHub application ID.
-
App Private Key: The GitHub application private key
. -
Protection key: To enable Zero-Knowledge, select a key with a Customer Fragment. For more information about Zero-Knowledge, see Implement Zero Knowledge.
- Click Save.
Updated about 1 year ago