Accept TOKEN_FOR_GITEA_WIKI in .env #83

Closed
opened 2026-10-13 06:08:28 +02:00 by Tirsvad · 0 comments
Owner

Add the key to CREDENTIAL_KEYS (src/lib/constants.sh) so the parser no longer rejects a .env that is shared with the wiki publishing. In validate_credentials (src/lib/config.sh) register its value as a secret and check it like the other tokens; it is never asked for and never written to the project's own .env. Add it, as optional, to .env.example and the header of src/create-project.sh. Test the key accepted, an invalid value refused without showing it, and .env.example read.

Phase: MIL-010

Add the key to `CREDENTIAL_KEYS` (`src/lib/constants.sh`) so the parser no longer rejects a `.env` that is shared with the wiki publishing. In `validate_credentials` (`src/lib/config.sh`) register its value as a secret and check it like the other tokens; it is never asked for and never written to the project's own `.env`. Add it, as optional, to `.env.example` and the header of `src/create-project.sh`. Test the key accepted, an invalid value refused without showing it, and `.env.example` read. Phase: MIL-010
Tirsvad added this to the MIL-010 Wiki Token Accepted and Access-Token Guide in the Wiki milestone 2026-10-13 06:08:28 +02:00
Sign in to join this conversation.