Prechádzať zdrojové kódy

docs: keep the Gogs token in a gitignored local file

Krasimir Kazakov 6 dní pred
rodič
commit
d8a930bf4c
2 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 3 0
      .gitignore
  2. 1 1
      AGENTS.md

+ 3 - 0
.gitignore

@@ -46,3 +46,6 @@ app.*.map.json
 
 # Widget Preview related
 .widget_preview/
+
+# Local Gogs release token; never commit.
+android/keystore/gogs_token

+ 1 - 1
AGENTS.md

@@ -135,7 +135,7 @@ Release checklist:
 ## 8. Gogs credentials
 
 - Never commit, print, or paste the Gogs token into chat, commit messages, logs, release bodies, or shell history. It is not part of the repository.
-- Read it from the `GOGS_TOKEN` environment variable, or from `$HOME/.config/cardash/gogs_token` (mode `600`). The token belongs to `kkazakov`.
+- Read it from the `GOGS_TOKEN` environment variable, else `$HOME/.config/cardash/gogs_token`, else `android/keystore/gogs_token` (all mode `600`; the repo-local file is gitignored). The token belongs to `kkazakov`.
 - Authenticate API calls with `Authorization: token $GOGS_TOKEN`. The token can list releases and read repository data.
 - This Gogs build exposes only `GET /repos/:owner/:repo/releases`; `POST /api/v1/repos/.../releases` returns an HTML 404. Create and publish releases in the web UI at `/releases/new`; do not block a release, or claim it is published, just because the API cannot create one.
 - Use the token only for API operations this Gogs version actually supports.