Skip to content
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

actions/cache throwing error even if the version is pinned to v4 #1550

Closed
michelleperello opened this issue Feb 12, 2025 · 2 comments
Closed

Comments

@michelleperello
Copy link

michelleperello commented Feb 12, 2025

Hi,

We had incidents last nigt of build failing because of the following error even though the version we used is already v4.
This morning it's no longer flagged as error but warning so builds are passing now but the warning still shows that our version will be deprecated even though we're already using the v4:

Last night's error

Download action repository 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe[34]
Download action repository 'actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af' (SHA:39370e3970a6d050c480ffad4ff0ed4d3fdee5af)
Download action repository 'actions/cache@v4' (SHA:1bd1e32a3bdc45362d1e726936510720a7c30a57)
Download action repository 'dorny/test-reporter@v1' (SHA:d61b558e8df85cb60d09ca3e5b09653b4477cea7)
Download action repository 'sonarsource/sonarcloud-github-action@master' (SHA:f1700773ebdb6efe6b3f8a5cf66150027dda8f5e)
Download action repository 'actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882' (SHA:b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882)
Getting action download info
Download action repository 'SonarSource/sonarqube-scan-action@v4.1.0' (SHA:1b442ee[39]
Getting action download info
Error: This request has been automatically failed because it uses a deprecated version of `actions/cache: v4.0.2`. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

This morning's warning:

[Build / Test and build]
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v4.0.2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

We are using the following versions:

actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57
actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57
@joshmgross
Copy link
Member

SonarSource/sonarqube-scan-action@v4.1.0 is using a deprecated version of the cache action

uses: actions/cache@v4.0.2

https://github.com/SonarSource/sonarqube-scan-action/blob/v4.1.0/action.yml#L35

You'll need to upgrade that action to the latest version

@michelleperello
Copy link
Author

Tested it fixed with SonarSource/sonarqube-scan-action@v4.2.1.
Thanks a lot for your immediate reply @joshmgross 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants