observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

chmod 777 breaks CIS 6.1.10 (ensure no world writable files) #160

Open philipkirkland opened 2 years ago

philipkirkland commented 2 years ago

The fix that was implemented for issue https://github.com/observing/pre-commit/issues/88 does not adhere to CIS 6.1.10.

The issue was that it needed to be executable, but the fix also included writable. Thi is not necessary. chmod 775 would have sufficed.