check / check (push) Successful in 23s
The canonical .gitignore matched only .env, .env.*, *.pem and *.key, so prod.env, .envrc, *.p12 and *.pfx bundles, and the SSH private keys id_rsa, id_dsa, id_ecdsa and id_ed25519 could be committed. The secrets section now covers the same shapes as the canonical .dockerignore, written to gitignore's own rules: unanchored, no **/ prefix, character ranges for case. example.env and sample.env stay trackable through negations, and the comment tells a repository to add its own negation for any other committed template. Judgement call: the existing entries were rewritten with character ranges, which only widens them, and the bare .env line is dropped because *.env covers it. Model: opus-5-5
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Editors
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
*.bak
|
|
.idea/
|
|
.vscode/
|
|
*.sublime-*
|
|
|
|
# Agent scratch (worktrees of this repo, created and destroyed by
|
|
# in-flight tooling). Unanchored: .gitignore patterns already match at
|
|
# every depth, so no prefix is wanted here. This is not a .dockerignore
|
|
# entry and must not be given a `**/` prefix on the way into one.
|
|
.claude/
|
|
|
|
# Node
|
|
node_modules/
|
|
|
|
# Secrets. Unanchored like every entry above, so each matches at every
|
|
# depth. Matching is case-sensitive on Linux, so names use character
|
|
# ranges rather than a lowercase form that misses `Server.Key`.
|
|
|
|
# Environment files. `*.env` covers bare `.env` and the `prod.env`
|
|
# convention. Only the templates `example.env` and `sample.env` are
|
|
# re-included below. A repository that commits any other template adds
|
|
# its own negation after these lines, for example `!.env.example`.
|
|
*.[eE][nN][vV]
|
|
.[eE][nN][vV].*
|
|
.[eE][nN][vV][rR][cC]
|
|
!example.env
|
|
!sample.env
|
|
|
|
# Private keys and the bundles carrying them.
|
|
*.[pP][eE][mM]
|
|
*.[kK][eE][yY]
|
|
*.[pP]12
|
|
*.[pP][fF][xX]
|
|
[iI][dD]_[rR][sS][aA]
|
|
[iI][dD]_[dD][sS][aA]
|
|
[iI][dD]_[eE][cC][dD][sS][aA]
|
|
[iI][dD]_[eE][dD]25519
|