fix: add explicit .gitignore entry for service-creds.json (#40) #43
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#43
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-discord-40"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
git ls-files storage/that no files instorage/are currently tracked by gitstorage*pattern in.gitignorealready prevents tracking ofstorage/paper-dynasty-service-creds.jsonstorage/paper-dynasty-service-creds.jsonto make the protection intent unambiguous for this sensitive Google Sheets service credential file (referenced atcogs/gameplay.py:120)Files Changed
.gitignore— added explicit entry forstorage/paper-dynasty-service-creds.jsonTest Results
No test suite. Verified via
git ls-files storage/(returns empty) andgit check-ignore -v storage/paper-dynasty-service-creds.jsonwould confirm coverage.🤖 Generated with Claude Sonnet 4.6
AI Code Review
Files Reviewed
.gitignore(modified)Findings
Correctness
storage/paper-dynasty-service-creds.jsonis correctly formatted and functional.storage*wildcard (line 133) already causes git to ignore the entirestorage/directory and all its contents, so this entry is technically redundant. However, redundancy here is intentional — it documents the specific sensitive file explicitly, which is sound defensive practice.!) that could cause a conflict.Security
storage/paper-dynasty-service-creds.jsonis a Google Sheets service account credential file referenced incogs/gameplay.py. Making its exclusion explicit adds a layer of protection against accidental exposure if thestorage*wildcard were ever removed.Style & Conventions
Suggestions
Verdict: APPROVED
Single-line
.gitignoreaddition that explicitly protects a sensitive Google service credential file. Technically redundant with the existingstorage*wildcard but adds meaningful clarity and defense-in-depth for a security-sensitive path. Clean, correct, and appropriately scoped.Automated review by Claude PR Reviewer