-
Notifications
You must be signed in to change notification settings - Fork 262
chore(deps): bump actions/cache from 5.0.4 to 5.0.5 in the github-actions group across 1 directory #1631
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
Closed
dependabot
wants to merge
1
commit into
main
from
dependabot/github_actions/github-actions-20de5e3257
+1
−1
Closed
chore(deps): bump actions/cache from 5.0.4 to 5.0.5 in the github-actions group across 1 directory #1631
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
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.
🟡 The inline comment on line 47 still reads
# v5.0.4after the commit hash was updated to the v5.0.5 hash (27d5ce7f). Update the comment to# v5.0.5to accurately reflect the pinned version.Extended reasoning...
What the bug is: This PR bumps
actions/cachefrom v5.0.4 to v5.0.5 by updating the pinned commit hash on line 47 of.github/workflows/ci.yml. However, the inline human-readable version comment on the same line was not updated and still reads# v5.0.4instead of# v5.0.5.The specific code path: The single changed line in this PR is:
The commit hash
27d5ce7f107fe9357f9df03efb73ab90386fccaecorresponds to v5.0.5 (as stated in the PR title and description), but the comment still saysv5.0.4.Why existing code doesn't prevent it: Dependabot automatically updates the pinned commit hash but does not always update the adjacent human-readable version comment. There is no automated check that validates the comment matches the actual version of the pinned commit.
Impact: The workflow functions correctly because GitHub Actions resolves the action by the commit hash, not the comment. However, maintainers who read the file to determine which version is pinned will be misled into thinking v5.0.4 is in use when v5.0.5 is actually running.
How to fix it: Change the comment from
# v5.0.4to# v5.0.5on line 47:Step-by-step proof:
actions/cachefrom 5.0.4 to 5.0.5"27d5ce7f107fe9357f9df03efb73ab90386fccaeis the merge commit for actions/cache v5.0.5 (confirmed in the PR's commit list)668228422ae6a00e4ad889ee87cd7109ec5666a7was v5.0.4# v5.0.4comment was not updated.github/workflows/ci.ymland trusting the comment will incorrectly believe v5.0.4 is pinned