Fix GitHub Actions lint workflow: update gem versions and permissions for fork compatibility #4818
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.
Problem
The GitHub Actions lint workflow was failing due to two main issues:
faraday-retry-2.3.1
,rake-13.2.1
,rubocop-1.75.5
,faraday-2.12.2
,json-2.11.3
,language_server-protocol-3.17.0.4
) preventing RuboCop from runningpull_request
trigger which lacks permissions to create annotations and push changes from forksSolution
1. Updated Gemfile with exact required versions
2. Updated workflow for fork compatibility
Changes Made
bundle update
with new versionspull_request_target
and addedchecks: write
permissionTesting
The workflow should now work correctly on pull requests from forks with the necessary permissions to create annotations and auto-fix lint issues.
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.