github

Description

Create a github context.

Git context are used to clone repositories during pipeline execution.
Learn more about git context here: https://codefresh.io/docs/docs/codefresh-yaml/steps/git-clone/.
To create Github context you need to generate the token here: https://github.com/settings/tokens.

Command

codefresh create context git github <name>

Options

Option Alias Type Default Description
--sharing-policy string AccountAdmins Set the sharing policy for git contexts

Possible values:
- AccountAdmins
- AllUsersInAccount
--behind-firewall boolean false Set to true to mark this context with behind firewall flag
--help Print help information
--access-token -t Access token from to be used to clone repositories. required
--host -h string api.github.com Host name of your github (without protocol). required
--api-path-prefix -a string / Prefix of the api on the given host. required