Skip to content

Commit

Permalink
Fix for typo in pathlib rule example output (#570)
Browse files Browse the repository at this point in the history
A copy-and-paste error where PY036 should be PY037 for the pathlib loose
permissions rule.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
  • Loading branch information
ericwb authored Aug 26, 2024
1 parent 74ff6f3 commit e376988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/pathlib_loose_file_perm.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
```
> precli tests/unit/rules/python/stdlib/pathlib/examples/pathlib_chmod_o755_binop_stat.py
⚠️ Warning on line 8 in tests/unit/rules/python/stdlib/pathlib/examples/pathlib_chmod_o755_binop_stat.py
PY036: Incorrect Permission Assignment for Critical Resource
PY037: Incorrect Permission Assignment for Critical Resource
Mode '0o755' grants excessive permissions, potentially allowing unauthorized access or modification.
```
Expand Down

0 comments on commit e376988

Please sign in to comment.