molecule-core/org-templates/molecule-dev
rabbitblood cd739ef299 chore(template): address review feedback — scrub token from .git/config + document env vars
Addresses FLAG 1 and FLAG 2 from the 7-Gate review on PR #20.

FLAG 1 (token persisted on disk):
Previous: `git clone https://x-access-token:${GITHUB_TOKEN}@github.com/...` wrote
the full tokenized URL into /workspace/repo/.git/config as `[remote "origin"] url = …`.
Token survived container restarts on any bind-mounted workspace_dir.

Fix: after clone, `git remote set-url origin https://github.com/${GITHUB_REPO}.git`
scrubs the token from the remote URL. Token is only in the clone command's argv
(transient) and not persisted on disk. Falls back to anonymous for public repos.

FLAG 2 (docs not updated):
Added GITHUB_REPO and GITHUB_TOKEN entries under a new 'GitHub' section in
.env.example with notes about (a) what they're read for, (b) that GITHUB_TOKEN
should be registered as a global secret via POST /admin/secrets, (c) how it's
handled to avoid on-disk persistence.

FLAG 3 (per-workspace gating) is deferred to a separate issue — it's a platform
design question about secret scope/ACLs, not a template fix.
2026-04-13 21:07:26 -07:00
..
backend-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
competitive-intelligence initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
dev-lead initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
devops-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
frontend-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
market-analyst initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
pm initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
qa-engineer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
research-lead initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
security-auditor initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
technical-researcher initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
uiux-designer initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
.env.example initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
org.yaml chore(template): address review feedback — scrub token from .git/config + document env vars 2026-04-13 21:07:26 -07:00