5. Safeguards
Repositories hold the firm's and its clients' code, history and automation. The safeguards are about what never enters history and what never leaves it.
| Risk | Safeguard |
|---|---|
| A secret in a commit | Secrets live in a secrets folder or the host's environment variables, never in the repository. A secret found in history is replaced, not merely deleted. |
| A rewritten shared branch | No force push and no rebase on a branch someone else uses. |
| Two sessions on one branch | The pull request's state and origin/<branch> are read again immediately before any merge or push. |
| A change merged by accident | Merges are pinned to the reviewed commit, and a merge happens only on the owner's word. |
Verified November 27, 2026 against GitHub's documentation and the firm's records. References