Added write and read permissions for pull requests, statuses, checks, contents, and actions. Enhanced pull_request trigger with the "synchronize" type and introduced the "merge_group" trigger for merge queue checks. These changes improve workflow flexibility and automation capabilities.
Added `contents: read` and `pull-requests: read` permissions to the `tests` and `publish` GitHub workflows. This enhances security by explicitly defining the required permissions for these jobs.