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
@@ -59,6 +59,9 @@ BOT_STATUS_INTERVAL_SECONDS=60
|
||||
GITEA_URL=https://gitea.nocode-var.tech
|
||||
# Token with least privilege (read:repository, write:issue). Never log it.
|
||||
GITEA_TOKEN=
|
||||
# Admin token for the recruitment flow (write:admin, write:organization, read:user).
|
||||
# Leave empty to fall back to GITEA_TOKEN.
|
||||
GITEA_RECRUITMENT_TOKEN=
|
||||
GITEA_OWNER=FWS
|
||||
GITEA_REPO=FWS-Arch
|
||||
# Organisation qui accueille les personnes recrutées (défaut : GITEA_OWNER)
|
||||
|
||||
Reference in new issue
Block a user