CI: non-secret values (OAuth client id, allowed users, P4N user) may be Actions variables too, falling back to secrets
This commit is contained in:
1 parent
6b6a7f0027
commit
878ba206a1
2 files changed
+9
-3
No files matched your search
@@ -137,6 +137,9 @@ It's not created by hand on the server — the deploy job's "Write
|
||||
.env" step regenerates it on every deploy from repo-level Gitea
|
||||
Actions secrets (*Settings → Actions → Secrets*): `SESSION_SECRET`,
|
||||
`OAUTH_CLIENT_ID`, `OAUTH_CLIENT_SECRET`, `MAPTOOL_ALLOWED_GITEA_USER`.
|
||||
The non-secret ones — `OAUTH_CLIENT_ID`, `MAPTOOL_ALLOWED_GITEA_USER`,
|
||||
`P4N_USER`, `MQTT_URL`, `MQTT_USERNAME` — may be Actions *Variables*
|
||||
instead (the step reads `vars.X || secrets.X`); the rest stay Secrets.
|
||||
The OAuth2 ones aren't named `GITEA_OAUTH_CLIENT_*` to match the `.env`
|
||||
var names 1:1 — Gitea rejects secret names starting with `GITEA_` or
|
||||
`GITHUB_` as reserved — but the workflow step maps them to the right
|
||||
|
||||
Reference in new issue
Block a user