-
Notifications
You must be signed in to change notification settings - Fork 0
docs(sync): 4 concepts for 2026-06-22 [routine:docs-sync] #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
JacobPEvans-personal
wants to merge
4
commits into
main
Choose a base branch
from
docs/docs-sync/2026-06-22
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+119
−10
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e449d6c
docs(sync): update ai-workflows auth to GH_ACTION_AI_* namespace [doc…
JacobPEvans-personal 43462b4
docs(sync): add maintainer-profile and secrets injection to nix-ai [d…
JacobPEvans-personal 8a2232c
docs(sync): RustFS object storage + org-default gitignore + nav [docs…
JacobPEvans-personal b0e947f
docs(sync): fix doppler.yaml gitignore and object_storage module name
JacobPEvans-personal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| title: "Org-default .gitignore" | ||
| description: "A canonical .gitignore baseline shipped from dryvist/.github that every repo adopts. Prevents secrets, credentials, and AI-assistant local state from ever reaching git history." | ||
| tier: 1 | ||
| --- | ||
|
|
||
| > One gitignore to rule them all. Never commit secrets or AI local state — not by accident, not by habit. | ||
|
|
||
| The `dryvist/.github` repo ships a canonical `.gitignore` baseline at `configs/gitignore`. Every new repo adopts it by appending (not overwriting) to the repo's own `.gitignore`, preserving repo-specific entries while inheriting the org-wide safety floor. | ||
|
|
||
| ## What it covers | ||
|
|
||
| The baseline targets two categories of files that must never reach git history: | ||
|
|
||
| **Secrets and credentials** | ||
| - `.env`, `.env.*` (except `.env.example`) — never commit real env files | ||
| - `*.pem`, `*.key`, `*.p12`, `*.pfx` — private keys | ||
| - `terraform.tfvars` (unencrypted), `credentials.json`, `secrets.yaml` (unencrypted) | ||
|
|
||
| **AI-assistant local / machine state** | ||
| - `.claude/mcp_settings.json` — MCP server list (can contain tokens) | ||
| - `CLAUDE.local.md`, `AGENTS.local.md`, `.envrc.local` — local overrides (gitignored by convention) | ||
| - `*.local.md` — any local-only markdown | ||
|
|
||
| **Intentional carve-outs** (do NOT add these back to `.gitignore`): | ||
|
|
||
| | Path | Why it's committed | | ||
| | --- | --- | | ||
| | `.envrc` | `use flake` directive; the `SOPS_AGE_KEY_FILE` path is not a secret | | ||
| | `*.sops.yaml` / `*.sops.yml` | SOPS-encrypted ciphertext — safe to commit | | ||
| | `.terraform.lock.hcl` | Provider lock file — committed by convention | | ||
| | `.claude/settings.json` | Project AI config — committed on purpose | | ||
| | `.claude/rules/`, committed skills/agents | Project Claude Code config | | ||
| | `CLAUDE.md`, `AGENTS.md` | Project AI instructions | | ||
|
|
||
| ## Adopting in a new repo | ||
|
|
||
| ```bash | ||
| gh api repos/dryvist/.github/contents/configs/gitignore \ | ||
| -H "Accept: application/vnd.github.raw" >> .gitignore | ||
|
JacobPEvans-personal marked this conversation as resolved.
|
||
| ``` | ||
|
|
||
| Use `>>` (append) so repo-specific entries are preserved. De-duplicate afterward if needed. | ||
|
|
||
| ## Scope | ||
|
|
||
| The baseline covers secrets and AI state only — it is not a comprehensive language gitignore. Pair it with a language-specific template (GitHub's `.gitignore` templates, `gitignore.io`) for full coverage. | ||
|
|
||
| ## Future work | ||
|
|
||
| - Automate adoption in the repo scaffold / copier template so new repos inherit the baseline at creation time rather than manually. | ||
| - Add a pre-commit hook that checks for `.env` files without the example suffix before every commit. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.