◐ Shell
reader mode source ↗
Skip to content

Bump @actions/cache to v5.1.0 - handle read-only cache access#1775

Merged
danwkennedy merged 1 commit into
actions:releases/v5from
jasongin:readonly-cache-v5
Jun 26, 2026
Merged

Bump @actions/cache to v5.1.0 - handle read-only cache access#1775
danwkennedy merged 1 commit into
actions:releases/v5from
jasongin:readonly-cache-v5

Conversation

@jasongin

Copy link
Copy Markdown
Contributor

Backport #1768 to v5.

Description

  • Bump @actions/cache to v5.1.0 to pick up actions/toolkit#2435 Handle cache write error due to read-only token
  • Switch redundant "Cache save failed" warning to debug log in save-only
  • Add a section in README.md about read-only cache access
  • Update generated JavaScript files under dist
  • Update license files for dependencies
  • Bump minor version in package.json from 5.0.4 to 5.1.0

Motivation and Context

The Actions service will soon issue tokens with read-only cache access to certain lower-trust worfklows such as pull_request_target. (Until now, read-write cache access was always granted.) Without this fix, the cache actions do not propagate errors from the service when attempting to write to the cache, resulting in a misleading warning message emitted to the workflow log: "Unable to reserve cache with key ${key}, another job may be creating this cache." After this change, the correct "cache write denied" warning will be emitted instead when that happens.

How Has This Been Tested?

  • The @actions/cache change in the toolkit repo included updated unit tests.
  • I ran end-to-end workflows with read-only cache tokens along with the changes in this PR and observed the resulting warnings emitted to the workflow log.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (add or update README or docs)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@jasongin jasongin requested a review from a team as a code owner June 26, 2026 19:09
Hide details View details @danwkennedy danwkennedy merged commit caa2961 into actions:releases/v5 Jun 26, 2026
15 checks passed
@jasongin jasongin deleted the readonly-cache-v5 branch June 26, 2026 19:14
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Jun 29, 2026
Bumps [actions/cache/restore](https://github.com/actions/cache) from 5.0.5 to 6.1.0.
Release notes

*Sourced from [actions/cache/restore's releases](https://github.com/actions/cache/releases).*

> v6.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v6.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1768](https://redirect.github.com/actions/cache/pull/1768)
>
> **Full Changelog**: <actions/cache@v6...v6.1.0>
>
> v6.0.0
> ------
>
> What's Changed
> --------------
>
> * Update packages, migrate to ESM by [`@​Samirat`](https://github.com/Samirat) in [actions/cache#1760](https://redirect.github.com/actions/cache/pull/1760)
>
> **Full Changelog**: <actions/cache@v5...v6.0.0>
>
> v5.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v5.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1775](https://redirect.github.com/actions/cache/pull/1775)
>
> **Full Changelog**: <actions/cache@v5...v5.1.0>


Changelog

*Sourced from [actions/cache/restore's changelog](https://github.com/actions/cache/blob/main/RELEASES.md).*

> Releases
> ========
>
> How to prepare a release
> ------------------------
>
> > [!NOTE]
> > Relevant for maintainers with write access only.
>
> 1. Switch to a new branch from `main`.
> 2. Run `npm test` to ensure all tests are passing.
> 3. Update the version in [`https://github.com/actions/cache/blob/main/package.json`](https://github.com/actions/cache/blob/main/package.json).
> 4. Run `npm run build` to update the compiled files.
> 5. Update this [`https://github.com/actions/cache/blob/main/RELEASES.md`](https://github.com/actions/cache/blob/main/RELEASES.md) with the new version and changes in the `## Changelog` section.
> 6. Run `licensed cache` to update the license report.
> 7. Run `licensed status` and resolve any warnings by updating the [`https://github.com/actions/cache/blob/main/.licensed.yml`](https://github.com/actions/cache/blob/main/.licensed.yml) file with the exceptions.
> 8. Commit your changes and push your branch upstream.
> 9. Open a pull request against `main` and get it reviewed and merged.
> 10. Draft a new release <https://github.com/actions/cache/releases> use the same version number used in `package.json`
>     1. Create a new tag with the version number.
>     2. Auto generate release notes and update them to match the changes you made in `RELEASES.md`.
>     3. Toggle the set as the latest release option.
>     4. Publish the release.
> 11. Navigate to <https://github.com/actions/cache/actions/workflows/release-new-action-version.yml>
>     1. There should be a workflow run queued with the same version number.
>     2. Approve the run to publish the new version and update the major tags for this action.
>
> Changelog
> ---------
>
> ### 6.1.0
>
> * Bump `@actions/cache` to v6.1.0 to pick up [actions/toolkit#2435 Handle cache write error due to read-only token](https://redirect.github.com/actions/toolkit/pull/2435)
> * Switch redundant "Cache save failed" warning to debug log in save-only
>
> ### 6.0.0
>
> * Updated `@actions/cache` to ^6.0.1, `@actions/core` to ^3.0.1, `@actions/exec` to ^3.0.0, `@actions/io` to ^3.0.2
> * Migrated to ESM module system
> * Upgraded Jest to v30 and test infrastructure to be ESM compatible
>
> ### 5.0.4
>
> * Bump `minimatch` to v3.1.5 (fixes ReDoS via globstar patterns)
> * Bump `undici` to v6.24.1 (WebSocket decompression bomb protection, header validation fixes)
> * Bump `fast-xml-parser` to v5.5.6
>
> ### 5.0.3
>
> * Bump `@actions/cache` to v5.0.5 (Resolves: <https://github.com/actions/cache/security/dependabot/33>)
> * Bump `@actions/core` to v2.0.3
>
> ### 5.0.2

... (truncated)


Commits

* [`55cc834`](actions/cache@55cc834) Merge pull request [#1768](https://redirect.github.com/actions/cache/issues/1768) from jasongin/readonly-cache
* [`d8cd72f`](actions/cache@d8cd72f) Bump `@​actions/cache` to v6.1.0 - handle cache write error due to RO token
* [`2c8a9bd`](actions/cache@2c8a9bd) Merge pull request [#1760](https://redirect.github.com/actions/cache/issues/1760) from actions/samirat/esm\_migration\_and\_package\_update
* [`e9b91fd`](actions/cache@e9b91fd) Prettier fixes
* [`e4884b8`](actions/cache@e4884b8) Rebuild dist
* [`10baf01`](actions/cache@10baf01) Fixed licenses
* [`e39b386`](actions/cache@e39b386) Fix test mock return order
* [`b692820`](actions/cache@b692820) PR feedback
* [`6074912`](actions/cache@6074912) Rebuild dist bundles as ESM to match type:module
* [`5a912e8`](actions/cache@5a912e8) Fix lint and jest issues
* Additional commits viewable in [compare view](actions/cache@27d5ce7...55cc834)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/cache/restore&package-manager=github\_actions&previous-version=5.0.5&new-version=6.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Jun 29, 2026
Bumps [actions/cache](https://github.com/actions/cache) from 5.0.5 to 6.1.0.
Release notes

*Sourced from [actions/cache's releases](https://github.com/actions/cache/releases).*

> v6.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v6.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1768](https://redirect.github.com/actions/cache/pull/1768)
>
> **Full Changelog**: <actions/cache@v6...v6.1.0>
>
> v6.0.0
> ------
>
> What's Changed
> --------------
>
> * Update packages, migrate to ESM by [`@​Samirat`](https://github.com/Samirat) in [actions/cache#1760](https://redirect.github.com/actions/cache/pull/1760)
>
> **Full Changelog**: <actions/cache@v5...v6.0.0>
>
> v5.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v5.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1775](https://redirect.github.com/actions/cache/pull/1775)
>
> **Full Changelog**: <actions/cache@v5...v5.1.0>


Changelog

*Sourced from [actions/cache's changelog](https://github.com/actions/cache/blob/main/RELEASES.md).*

> Releases
> ========
>
> How to prepare a release
> ------------------------
>
> > [!NOTE]
> > Relevant for maintainers with write access only.
>
> 1. Switch to a new branch from `main`.
> 2. Run `npm test` to ensure all tests are passing.
> 3. Update the version in [`https://github.com/actions/cache/blob/main/package.json`](https://github.com/actions/cache/blob/main/package.json).
> 4. Run `npm run build` to update the compiled files.
> 5. Update this [`https://github.com/actions/cache/blob/main/RELEASES.md`](https://github.com/actions/cache/blob/main/RELEASES.md) with the new version and changes in the `## Changelog` section.
> 6. Run `licensed cache` to update the license report.
> 7. Run `licensed status` and resolve any warnings by updating the [`https://github.com/actions/cache/blob/main/.licensed.yml`](https://github.com/actions/cache/blob/main/.licensed.yml) file with the exceptions.
> 8. Commit your changes and push your branch upstream.
> 9. Open a pull request against `main` and get it reviewed and merged.
> 10. Draft a new release <https://github.com/actions/cache/releases> use the same version number used in `package.json`
>     1. Create a new tag with the version number.
>     2. Auto generate release notes and update them to match the changes you made in `RELEASES.md`.
>     3. Toggle the set as the latest release option.
>     4. Publish the release.
> 11. Navigate to <https://github.com/actions/cache/actions/workflows/release-new-action-version.yml>
>     1. There should be a workflow run queued with the same version number.
>     2. Approve the run to publish the new version and update the major tags for this action.
>
> Changelog
> ---------
>
> ### 6.1.0
>
> * Bump `@actions/cache` to v6.1.0 to pick up [actions/toolkit#2435 Handle cache write error due to read-only token](https://redirect.github.com/actions/toolkit/pull/2435)
> * Switch redundant "Cache save failed" warning to debug log in save-only
>
> ### 6.0.0
>
> * Updated `@actions/cache` to ^6.0.1, `@actions/core` to ^3.0.1, `@actions/exec` to ^3.0.0, `@actions/io` to ^3.0.2
> * Migrated to ESM module system
> * Upgraded Jest to v30 and test infrastructure to be ESM compatible
>
> ### 5.0.4
>
> * Bump `minimatch` to v3.1.5 (fixes ReDoS via globstar patterns)
> * Bump `undici` to v6.24.1 (WebSocket decompression bomb protection, header validation fixes)
> * Bump `fast-xml-parser` to v5.5.6
>
> ### 5.0.3
>
> * Bump `@actions/cache` to v5.0.5 (Resolves: <https://github.com/actions/cache/security/dependabot/33>)
> * Bump `@actions/core` to v2.0.3
>
> ### 5.0.2

... (truncated)


Commits

* [`55cc834`](actions/cache@55cc834) Merge pull request [#1768](https://redirect.github.com/actions/cache/issues/1768) from jasongin/readonly-cache
* [`d8cd72f`](actions/cache@d8cd72f) Bump `@​actions/cache` to v6.1.0 - handle cache write error due to RO token
* [`2c8a9bd`](actions/cache@2c8a9bd) Merge pull request [#1760](https://redirect.github.com/actions/cache/issues/1760) from actions/samirat/esm\_migration\_and\_package\_update
* [`e9b91fd`](actions/cache@e9b91fd) Prettier fixes
* [`e4884b8`](actions/cache@e4884b8) Rebuild dist
* [`10baf01`](actions/cache@10baf01) Fixed licenses
* [`e39b386`](actions/cache@e39b386) Fix test mock return order
* [`b692820`](actions/cache@b692820) PR feedback
* [`6074912`](actions/cache@6074912) Rebuild dist bundles as ESM to match type:module
* [`5a912e8`](actions/cache@5a912e8) Fix lint and jest issues
* Additional commits viewable in [compare view](actions/cache@27d5ce7...55cc834)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/cache&package-manager=github\_actions&previous-version=5.0.5&new-version=6.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Jun 29, 2026
Bumps [actions/cache/save](https://github.com/actions/cache) from 5.0.5 to 6.1.0.
Release notes

*Sourced from [actions/cache/save's releases](https://github.com/actions/cache/releases).*

> v6.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v6.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1768](https://redirect.github.com/actions/cache/pull/1768)
>
> **Full Changelog**: <actions/cache@v6...v6.1.0>
>
> v6.0.0
> ------
>
> What's Changed
> --------------
>
> * Update packages, migrate to ESM by [`@​Samirat`](https://github.com/Samirat) in [actions/cache#1760](https://redirect.github.com/actions/cache/pull/1760)
>
> **Full Changelog**: <actions/cache@v5...v6.0.0>
>
> v5.1.0
> ------
>
> What's Changed
> --------------
>
> * Bump `@​actions/cache` to v5.1.0 - handle read-only cache access by [`@​jasongin`](https://github.com/jasongin) in [actions/cache#1775](https://redirect.github.com/actions/cache/pull/1775)
>
> **Full Changelog**: <actions/cache@v5...v5.1.0>


Changelog

*Sourced from [actions/cache/save's changelog](https://github.com/actions/cache/blob/main/RELEASES.md).*

> Releases
> ========
>
> How to prepare a release
> ------------------------
>
> > [!NOTE]
> > Relevant for maintainers with write access only.
>
> 1. Switch to a new branch from `main`.
> 2. Run `npm test` to ensure all tests are passing.
> 3. Update the version in [`https://github.com/actions/cache/blob/main/package.json`](https://github.com/actions/cache/blob/main/package.json).
> 4. Run `npm run build` to update the compiled files.
> 5. Update this [`https://github.com/actions/cache/blob/main/RELEASES.md`](https://github.com/actions/cache/blob/main/RELEASES.md) with the new version and changes in the `## Changelog` section.
> 6. Run `licensed cache` to update the license report.
> 7. Run `licensed status` and resolve any warnings by updating the [`https://github.com/actions/cache/blob/main/.licensed.yml`](https://github.com/actions/cache/blob/main/.licensed.yml) file with the exceptions.
> 8. Commit your changes and push your branch upstream.
> 9. Open a pull request against `main` and get it reviewed and merged.
> 10. Draft a new release <https://github.com/actions/cache/releases> use the same version number used in `package.json`
>     1. Create a new tag with the version number.
>     2. Auto generate release notes and update them to match the changes you made in `RELEASES.md`.
>     3. Toggle the set as the latest release option.
>     4. Publish the release.
> 11. Navigate to <https://github.com/actions/cache/actions/workflows/release-new-action-version.yml>
>     1. There should be a workflow run queued with the same version number.
>     2. Approve the run to publish the new version and update the major tags for this action.
>
> Changelog
> ---------
>
> ### 6.1.0
>
> * Bump `@actions/cache` to v6.1.0 to pick up [actions/toolkit#2435 Handle cache write error due to read-only token](https://redirect.github.com/actions/toolkit/pull/2435)
> * Switch redundant "Cache save failed" warning to debug log in save-only
>
> ### 6.0.0
>
> * Updated `@actions/cache` to ^6.0.1, `@actions/core` to ^3.0.1, `@actions/exec` to ^3.0.0, `@actions/io` to ^3.0.2
> * Migrated to ESM module system
> * Upgraded Jest to v30 and test infrastructure to be ESM compatible
>
> ### 5.0.4
>
> * Bump `minimatch` to v3.1.5 (fixes ReDoS via globstar patterns)
> * Bump `undici` to v6.24.1 (WebSocket decompression bomb protection, header validation fixes)
> * Bump `fast-xml-parser` to v5.5.6
>
> ### 5.0.3
>
> * Bump `@actions/cache` to v5.0.5 (Resolves: <https://github.com/actions/cache/security/dependabot/33>)
> * Bump `@actions/core` to v2.0.3
>
> ### 5.0.2

... (truncated)


Commits

* [`55cc834`](actions/cache@55cc834) Merge pull request [#1768](https://redirect.github.com/actions/cache/issues/1768) from jasongin/readonly-cache
* [`d8cd72f`](actions/cache@d8cd72f) Bump `@​actions/cache` to v6.1.0 - handle cache write error due to RO token
* [`2c8a9bd`](actions/cache@2c8a9bd) Merge pull request [#1760](https://redirect.github.com/actions/cache/issues/1760) from actions/samirat/esm\_migration\_and\_package\_update
* [`e9b91fd`](actions/cache@e9b91fd) Prettier fixes
* [`e4884b8`](actions/cache@e4884b8) Rebuild dist
* [`10baf01`](actions/cache@10baf01) Fixed licenses
* [`e39b386`](actions/cache@e39b386) Fix test mock return order
* [`b692820`](actions/cache@b692820) PR feedback
* [`6074912`](actions/cache@6074912) Rebuild dist bundles as ESM to match type:module
* [`5a912e8`](actions/cache@5a912e8) Fix lint and jest issues
* Additional commits viewable in [compare view](actions/cache@27d5ce7...55cc834)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/cache/save&package-manager=github\_actions&previous-version=5.0.5&new-version=6.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
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

Successfully merging this pull request may close these issues.

2 participants