Skip to content

Commit 4d299df

Browse files
chore: harden .gitignore and untrack sensitive/build artifacts
- Untrack developerID_application.cer (Apple Developer certificate should never live in a public repo - Fastlane/CI fetches at build time) - Untrack tsconfig.*.tsbuildinfo (build cache, causes merge conflicts) - Expand .gitignore to block all cert/key/provisioning extensions (*.cer, *.pem, *.p12, *.p8, *.key, *.mobileprovision, etc.) - Add .env.* allowlist pattern so future env files are blocked by default - Move hardcoded Apple ID out of fastlane/Appfile to ENV-only - Replace personal email in fastlane/.env.example with placeholder
1 parent 9689b10 commit 4d299df

2 files changed

Lines changed: 38 additions & 4 deletions

File tree

.gitignore

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,44 @@
1+
# Dependencies & build output
12
node_modules/
23
out/
34
dist/
5+
6+
# Build cache
7+
*.tsbuildinfo
8+
9+
# Environment files — NEVER commit real secrets
410
.env
11+
.env.*
12+
!.env.example
513
*.local
14+
15+
# OS junk
616
.DS_Store
17+
Thumbs.db
718

819
# Database files — never commit user data
920
*.db
1021
*.sqlite
1122
*.sqlite3
1223

24+
# Signing certificates / provisioning / keys — NEVER commit
25+
*.cer
26+
*.crt
27+
*.pem
28+
*.p12
29+
*.p8
30+
*.key
31+
*.keystore
32+
*.jks
33+
*.mobileprovision
34+
*.provisionprofile
35+
resources/embedded.provisionprofile
36+
1337
# AI tool config (local dev tools)
1438
CLAUDE.md
1539
.claude/
1640
.cursor/
41+
.agents/
1742

1843
# Fastlane
1944
fastlane/.env
@@ -23,5 +48,14 @@ fastlane/screenshots
2348
fastlane/test_output
2449
Gemfile.lock
2550

26-
# MAS provisioning profile — generated during CI, never commit
27-
resources/embedded.provisionprofile
51+
# Logs
52+
*.log
53+
npm-debug.log*
54+
yarn-debug.log*
55+
yarn-error.log*
56+
57+
# Editor
58+
.idea/
59+
.vscode/
60+
*.swp
61+
*.swo

fastlane/Appfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
app_identifier "com.netcopilot.app"
2-
apple_id ENV["APPLE_ID"] || "your-apple-id@example.com"
3-
team_id "FC2U7NZKXV"
2+
apple_id ENV["APPLE_ID"]
3+
team_id ENV["APPLE_TEAM_ID"] || "FC2U7NZKXV"

0 commit comments

Comments
 (0)