auth: Ignore tokens.json so Login output is not git-added #21

Merged
eva merged 1 commits from blake/ignore-tokens-json into develop 2026-09-14 08:30:43 -05:00
Collaborator

Summary

  • Add tokens.json to .gitignore so Login / WriteTokens output is not staged by git add .
  • Note the ignore next to the existing mode-0600 guidance in README

Why

OAuth material (access/refresh, often client_secret) must not land in forge history. Closes #20.

Test plan

  • Confirm .gitignore matches tokens.json
  • git check-ignore -v tokens.json in a checkout with a local token file
## Summary - Add `tokens.json` to `.gitignore` so `Login` / `WriteTokens` output is not staged by `git add .` - Note the ignore next to the existing mode-0600 guidance in README ## Why OAuth material (access/refresh, often client_secret) must not land in forge history. Closes #20. ## Test plan - [ ] Confirm `.gitignore` matches `tokens.json` - [ ] `git check-ignore -v tokens.json` in a checkout with a local token file
pike changed target branch from master to develop 2026-09-14 08:28:47 -05:00
pike added 1 commit 2026-09-14 08:28:47 -05:00
auth: Ignore tokens.json so Login output is not git-added
CI / Test and build (pull_request) Successful in 16s
CI / Test and build (push) Successful in 16s
96bef3ddd5
Login writes access/refresh tokens (and often client_secret) to
tokens.json at mode 0600. Without a gitignore entry, git add . after a
local login can stage live Agentic credentials.

Closes: #20
eva merged commit 96bef3ddd5 into develop 2026-09-14 08:30:43 -05:00
eva deleted branch blake/ignore-tokens-json 2026-09-14 08:30:43 -05:00
Sign in to join this conversation.