Skip to content

Conversation

Mubashwer
Copy link
Owner

🤖 I have created a release beep boop

1.1.0 (2023-03-31)

Features

  • prevent adding of duplicate co-authored-by trailers (3125a11)

Bug Fixes

  • change crate name to git-mob-tool as git-mob already exists (203c7cf)

This PR was generated with Release Please. See documentation.

@Mubashwer Mubashwer merged commit fc20f6a into main Mar 31, 2023
@Mubashwer Mubashwer deleted the release-please--branches--main--components--release-please-action branch March 31, 2023 18:45
@Mubashwer
Copy link
Owner Author

🤖 Release is at https://github.com/Mubashwer/git-mob/releases/tag/v1.1.0 🌻

Mubashwer added a commit that referenced this pull request Jul 1, 2025
- Add path-clean dependency to sanitize file paths
- Fix 7 CodeQL path injection vulnerabilities in src/commands/setup.rs:
  * Alert #13: hooks_dir.exists() with unsanitized path from git config
  * Alert #12: hooks_dir.exists() with unsanitized global hooks directory
  * Alert #11: fs::rename() with unsanitized backup path construction
  * Alert #10: fs::set_permissions() with unsanitized file path
  * Alert #9: fs::write() with unsanitized file path
  * Alert #8: fs::create_dir_all() with unsanitized prepare_commit_msg_path
  * Alert #7: fs::create_dir_all() with unsanitized local hooks directory

- Use PathClean::clean() to normalize paths and remove directory traversal sequences
- Ensure all file system operations use sanitized paths to prevent path injection attacks
- Maintain backward compatibility and pass all existing tests

Fixes: GitHub Security Advisory alerts #7-#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant