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
@@ -148,6 +148,7 @@ Modèle complet : [`.env.example`](.env.example). Valeurs par défaut entre pare
|
||||
| --- | --- | --- |
|
||||
| `GITEA_URL` | — | URL de l'instance (sans `/` final) |
|
||||
| `GITEA_TOKEN` | — | Token à moindre privilège (`read:repository`, `write:issue`). Jamais loggé |
|
||||
| `GITEA_RECRUITMENT_TOKEN` | `GITEA_TOKEN` | Jeton admin (`write:admin`, `write:organization`, `read:user`) réservé au recrutement |
|
||||
| `GITEA_OWNER` | — | Propriétaire du dépôt (ex. `FWS`) |
|
||||
| `GITEA_ORG` | `GITEA_OWNER` | Organisation qui accueille les personnes recrutées |
|
||||
| `GITEA_DEV_TEAM` | `Dev` | Équipe Gitea où elles sont ajoutées à l'acceptation |
|
||||
|
||||
Reference in new issue
Block a user