feat(gitea): use a dedicated admin token for recruitment
CI / quality (push) Failing after 45s

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:
BlackAngelTV committed 2026-12-06 18:01:43 +01:00
1 parent 9b45c9bf89
commit adc96e4d75
9 files changed
+141 -34

No files matched your search

+3
View File
@@ -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)