[DevOps:CI] Add top-level permissions to workflows for least-privilege security
I think we should improve the security of our CI pipelines by adding top-level permissions: blocks to our GitHub Actions workflows.
Currently, several workflows in .github/workflows/ (such as rust.yml, pull_request.yml, release.yml, etc.) do not explicitly set top-level default permissions. This means the default GITHUB_TOKEN inherits broad permissions by default, which can be a security risk (especially on push events) if a dependency or action is compromised.
We should implement the GitHub-recommended "least-privilege" principle by defaulting the entire workflow to read-only access (e.g., permissions: contents: read or permissions: read-all), and then only granting elevated job-level permissions to the specific jobs that actually need to publish releases or write labels.
Affected files include most workflows, though nightly_build.yml seems to already implement this correctly.