Update actions with permissions and concurrency#3870
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR standardizes GitHub Actions workflow configurations by adding concurrency controls and ensuring proper permissions are set. The changes prevent redundant workflow runs and establish clear permission boundaries for workflow operations.
Key Changes:
- Added concurrency groups to all workflows to prevent overlapping runs
- Added explicit permissions to the main workflow
- Standardized concurrency configuration across push-based and pull request-based workflows
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/main.yaml | Added contents: write permissions and concurrency control for push events |
| .github/workflows/labels-sync.yaml | Added concurrency control for label synchronization |
| .github/workflows/dependency-review.yaml | Added concurrency control with PR-specific grouping |
| .github/workflows/dependabot.yaml | Added concurrency control with PR-specific grouping |
| push: | ||
|
|
||
| permissions: | ||
| contents: write |
There was a problem hiding this comment.
The contents: write permission grants broad write access to repository contents. Consider using more granular permissions based on the specific job requirements, or document why write access is necessary for this workflow.
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.
No description provided.