chore: update CI workflow permissions to read-all and adjust job-specific permissions#1311
Merged
Conversation
Contributor
Coverage Report
File CoverageNo changed files found. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR standardizes GitHub Actions GITHUB_TOKEN permissions across multiple workflows by setting a workflow-level default (permissions: read-all) and then using job-level permission blocks where elevated access (e.g., write) is required.
Changes:
- Adds
permissions: read-allat the workflow level across several CI/automation workflows. - Moves/keeps write permissions on specific jobs that need them (e.g., labeler, auto-merge, auto-update workflows).
- Removes now-redundant per-job
contents: readpermissions in some workflows (notablyci.ymlandperf-test.yml).
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/publish.yml | Adds workflow-level permissions: read-all above existing job permissions. |
| .github/workflows/pr-labeler.yml | Sets workflow default to read-all and keeps job-level contents: read / pull-requests: write. |
| .github/workflows/perf-test.yml | Adds workflow-level read-all, removes explicit job contents: read (notify job still has issues: write). |
| .github/workflows/claude.yml | Adds workflow-level read-all while job keeps explicit scoped permissions including id-token: write. |
| .github/workflows/ci.yml | Adds workflow-level read-all and removes many per-job contents: read blocks (some jobs still override). |
| .github/workflows/check-version.yml | Adds workflow-level read-all, removes job-level explicit permissions. |
| .github/workflows/auto-update-tauri.yml | Adds workflow-level read-all, adds job-level write permissions for update job. |
| .github/workflows/auto-update-safe-chain.yml | Adds workflow-level read-all, adds job-level write permissions for update job. |
| .github/workflows/auto-update-npm.yml | Adds workflow-level read-all, adds job-level write permissions for update job. |
| .github/workflows/auto-merge.yml | Adds workflow-level read-all, adds job-level write permissions for auto-merge job. |
Contributor
Rust Backend Coverage ReportCoverage Details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related Issues
Type of Change
fix/branch)feat/branch)refactor/branch)docs/branch)chore/branch)Screenshots / Videos
Test Plan
Checklist
npm run lint && npm run format/cargo tauri-lint && cargo tauri-fmt)npm test/cargo tauri-test)