Recruitment needs `write:admin` and `write:organization`, which the everyday token must not carry. A second token keeps the repository and issue scopes least privileged, falls back to `GITEA_TOKEN` so existing installs keep working, and a 403 now names the missing scope instead of pretending Gitea did not answer.
This commit is contained in:
9 files changed
+141
-34
No files matched your search
+11
-10
@@ -142,16 +142,17 @@ Full template: [`.env.example`](.env.example). Default values in brackets.
|
||||
|
||||
### Gitea
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------- | ------------- | ---------------------------------------------------------------------- |
|
||||
| `GITEA_URL` | — | Instance URL (without a trailing `/`) |
|
||||
| `GITEA_TOKEN` | — | Least privilege token (`read:repository`, `write:issue`). Never logged |
|
||||
| `GITEA_OWNER` | — | Repository owner (e.g. `FWS`) |
|
||||
| `GITEA_ORG` | `GITEA_OWNER` | Organization that hosts recruited people |
|
||||
| `GITEA_DEV_TEAM` | `Dev` | Gitea team they join on acceptance |
|
||||
| `GITEA_REPO` | — | Target repository (e.g. `FWS-Arch`) |
|
||||
| `GITEA_TIMEOUT_MS` | `10000` | Request timeout |
|
||||
| `GITEA_MAX_RETRIES` | `2` | Retries on transient errors (429, 5xx, timeout) |
|
||||
| Variable | Default | Description |
|
||||
| ------------------------- | ------------- | ---------------------------------------------------------------------------------- |
|
||||
| `GITEA_URL` | — | Instance URL (without a trailing `/`) |
|
||||
| `GITEA_TOKEN` | — | Least privilege token (`read:repository`, `write:issue`). Never logged |
|
||||
| `GITEA_RECRUITMENT_TOKEN` | `GITEA_TOKEN` | Admin token (`write:admin`, `write:organization`, `read:user`) used by recruitment |
|
||||
| `GITEA_OWNER` | — | Repository owner (e.g. `FWS`) |
|
||||
| `GITEA_ORG` | `GITEA_OWNER` | Organization that hosts recruited people |
|
||||
| `GITEA_DEV_TEAM` | `Dev` | Gitea team they join on acceptance |
|
||||
| `GITEA_REPO` | — | Target repository (e.g. `FWS-Arch`) |
|
||||
| `GITEA_TIMEOUT_MS` | `10000` | Request timeout |
|
||||
| `GITEA_MAX_RETRIES` | `2` | Retries on transient errors (429, 5xx, timeout) |
|
||||
|
||||
### Gitea webhooks
|
||||
|
||||
|
||||
Reference in new issue
Block a user