mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Update github auth install (#2499)
This commit is contained in:
parent
24204ecdeb
commit
936f1512d0
1 changed files with 6 additions and 30 deletions
|
@ -9,49 +9,25 @@ WOODPECKER_GITHUB_CLIENT=YOUR_GITHUB_CLIENT_ID
|
||||||
WOODPECKER_GITHUB_SECRET=YOUR_GITHUB_CLIENT_SECRET
|
WOODPECKER_GITHUB_SECRET=YOUR_GITHUB_CLIENT_SECRET
|
||||||
```
|
```
|
||||||
|
|
||||||
You will get these values from GitHub when you register your application.
|
You will get these values from GitHub when you register your OAuth application.
|
||||||
To do so, go to Settings -> Developer Settings -> GitHub Apps -> New GitHub App.
|
To do so, go to Settings -> Developer Settings -> GitHub Apps -> New Oauth2 App.
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
Do not use a "GitHub App" instead of an Oauth2 app as the former will not work correctly with Woodpecker right now (because user access tokens are not being refreshed automatically)
|
||||||
|
:::
|
||||||
|
|
||||||
## App Settings
|
## App Settings
|
||||||
|
|
||||||
- Name: An arbitrary name for your App
|
- Name: An arbitrary name for your App
|
||||||
- Homepage URL: The URL of your Woodpecker instance
|
- Homepage URL: The URL of your Woodpecker instance
|
||||||
- Callback URL: `https://<your-woodpecker-instance>/authorize`
|
- Callback URL: `https://<your-woodpecker-instance>/authorize`
|
||||||
- Leave "Request user authorization (OAuth) during installation" and "Enable Device Flow" unchecked
|
|
||||||
- Leave "Webhook" and "Post Installation" fields empty
|
|
||||||
- (optional) Upload the Woodpecker Logo: https://avatars.githubusercontent.com/u/84780935?s=200&v=4
|
- (optional) Upload the Woodpecker Logo: https://avatars.githubusercontent.com/u/84780935?s=200&v=4
|
||||||
|
|
||||||
## App Permissions
|
|
||||||
|
|
||||||
The app must be granted the following permissions (under App Settings -> Permissions):
|
|
||||||
|
|
||||||
Repository:
|
|
||||||
|
|
||||||
- Commit statuses: Read & write
|
|
||||||
- Contents: Read & write
|
|
||||||
- Deployments: Read & write
|
|
||||||
- Metadata: Read-only
|
|
||||||
- Pull requests: Read & write
|
|
||||||
- Secrets: Read & write
|
|
||||||
- Webhooks: Read & write
|
|
||||||
|
|
||||||
Organization:
|
|
||||||
|
|
||||||
- Members: Read-only
|
|
||||||
|
|
||||||
Account:
|
|
||||||
|
|
||||||
- Email addresses: Read-only
|
|
||||||
|
|
||||||
## Client Secret Creation
|
## Client Secret Creation
|
||||||
|
|
||||||
After your App has been created, you can generate a client secret.
|
After your App has been created, you can generate a client secret.
|
||||||
Use this one for the `WOODPECKER_GITHUB_SECRET` environment variable.
|
Use this one for the `WOODPECKER_GITHUB_SECRET` environment variable.
|
||||||
|
|
||||||
## Installing the app
|
|
||||||
|
|
||||||
In the app settings, click on "Install App" and give the app permissions to the repositories you want to use with Woodpecker.
|
|
||||||
|
|
||||||
## All GitHub Configuration Options
|
## All GitHub Configuration Options
|
||||||
|
|
||||||
This is a full list of configuration options. Please note that many of these options use default configuration values that should work for the majority of installations.
|
This is a full list of configuration options. Please note that many of these options use default configuration values that should work for the majority of installations.
|
||||||
|
|
Loading…
Reference in a new issue