mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
1.1 KiB
1.1 KiB
GitHub
Drone comes with built-in support for GitHub and GitHub Enterprise. To enable and configure GitHub, you should set the following environment variables:
REMOTE_DRIVER="github"
GITHUB_CLIENT="c0aaff74c060ff4a950d"
GITHUB_SECRET="1ac1eae5ff1b490892f5"
GitHub settings
This section lists all environment variables used to configure GitHub.
GITHUB_HOSTserver address to connect to. The default value ishttps://github.comif not specified.GITHUB_CLIENToauth client id for registered applicationGITHUB_SECREToauth client secret for registered applicationGITHUB_OPEN=falseallows users to self-register. Defaults to false for security reasons.GITHUB_ORGS=drone,dockerrestricts access to these GitHub organizations. OptionalGITHUB_PRIVATE_MODE=falseindicates GitHub Enterprise is running in private mode
GitHub Enterprise
If you are configuring Drone with GitHub Enterprise edition, you must specify the GITHUB_HOST in the configuration string. Note that you may also need to set GITHUB_PRIVATE_MODE=true when running GitHub Entperirse in private mode.