- 
                Notifications
    
You must be signed in to change notification settings  - Fork 7
 
workflow permissions #1953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
workflow permissions #1953
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds explicit workflow-level permissions to enforce the principle of least privilege across CI and release pipelines.
- Introduce read-only permissions for content, pull requests, and actions in most workflows.
 - Grant necessary write permissions (contents, packages, id-token) plus read permissions in the release workflow.
 - Ensure scopes are explicitly declared rather than relying on repository defaults.
 
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description | 
|---|---|
| .github/workflows/tests.yml | Added permissions block with contents, pull-requests, actions set to read. | 
| .github/workflows/release.yml | Configured permissions for release: contents, packages, id-token set to write; others set to read. | 
| .github/workflows/provider_image.yml | Added permissions block with contents, pull-requests, actions set to read. | 
| .github/workflows/lint.yml | Added permissions block with contents, pull-requests, actions set to read. | 
| .github/workflows/cypress.yml | Added permissions block with contents, pull-requests, actions set to read. | 
| .github/workflows/changesets.yml | Added permissions block with contents, pull-requests, actions set to read. | 
| .github/workflows/cache.yml | Added permissions block with contents, actions set to read. | 
Comments suppressed due to low confidence (3)
.github/workflows/tests.yml:19
- [nitpick] Permissions sections are duplicated across multiple workflows; consider extracting common permission settings into a reusable workflow or central template to reduce repetition.
 
permissions:
.github/workflows/cache.yml:14
- The cache workflow grants only 
contentsandactionsread permissions but omitspull-requests: read, which may be needed if the job interacts with pull request data; consider adding it for consistency. 
permissions:
.github/workflows/release.yml:15
- Using a personal access token (PROSOPONATOR_PAT) for GITHUB_TOKEN can grant elevated privileges; prefer the built-in GITHUB_TOKEN for supported operations and limit PAT use to only the necessary scopes.
 
  contents: write
116b575    to
    f81d571      
    Compare
  
    
No description provided.