Summary
Refactor scripts/diffcheck.sh to improve security and reliability by replacing fixed /tmp paths with secure temporary directories and avoiding destructive git checkout.
Changes
- Secure temp files: Use
mktemp -dwith automatic cleanup viatrapinstead of hardcoded/tmppaths - Non-destructive git operations: Replace
git checkout HEAD^withgit archiveto avoid modifying working tree state