You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ If you do not upgrade, all workflow runs using any of the deprecated [actions/ca
33
33
34
34
Upgrading to the recommended versions will not break your workflows.
35
35
36
-
> **Additionally, if you are managing your own GitHub runners, you must update your runner version to `2.231.0` or newer to ensure compatibility with the new cache service.**
36
+
> **Additionally, if you are managing your own GitHub runners, you must update your runner version to `2.231.0` or newer to ensure compatibility with the new cache service.**
37
37
> Failure to update both the action version and your runner version may result in workflow failures after the migration date.
38
38
39
39
Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510).
@@ -109,6 +109,14 @@ The cache is scoped to the key, [version](#cache-version), and branch. The defau
109
109
110
110
See [Matching a cache key](https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key) for more info.
111
111
112
+
### Read-only access
113
+
114
+
Some workflow runs only have read-only access to the cache. A common case is a workflow triggered by a pull request from a fork: such runs can **restore** existing caches but may not be permitted to **save** new ones.
115
+
116
+
When the cache token is read-only, the save step does not fail the job. Instead, `@actions/cache` reports the denial once as a warning (for example, `Failed to save: ... cache write denied: ...`) and the step completes successfully without writing a cache entry. Restores in the same run continue to work as usual.
117
+
118
+
> **Note** This applies to the action's normal save path as well as the standalone [Save action](./save/README.md). If you intentionally want a restore-only setup, see [Make cache read only / Reuse cache from centralized job](./caching-strategies.md#make-cache-read-only--reuse-cache-from-centralized-job).
119
+
112
120
### Example cache workflow
113
121
114
122
#### Restoring and saving cache using a single action
@@ -351,7 +359,7 @@ Please note that Windows environment variables (like `%LocalAppData%`) will NOT
351
359
352
360
## Note
353
361
354
-
Thank you for your interest in this GitHub repo, however, right now we are not taking contributions.
362
+
Thank you for your interest in this GitHub repo, however, right now we are not taking contributions.
355
363
356
364
We continue to focus our resources on strategic areas that help our customers be successful while making developers' lives easier. While GitHub Actions remains a key part of this vision, we are allocating resources towards other areas of Actions and are not taking contributions to this repository at this time. The GitHub public roadmap is the best place to follow along for any updates on features we’re working on and what stage they’re in.
357
365
@@ -369,4 +377,4 @@ You are welcome to still raise bugs in this repo.
369
377
370
378
## License
371
379
372
-
The scripts and documentation in this project are released under the [MIT License](LICENSE)
380
+
The scripts and documentation in this project are released under the [MIT License](LICENSE)
Copy file name to clipboardExpand all lines: RELEASES.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## How to prepare a release
4
4
5
-
> [!NOTE]
5
+
> [!NOTE]
6
6
> Relevant for maintainers with write access only.
7
7
8
8
1. Switch to a new branch from `main`.
@@ -21,10 +21,15 @@
21
21
1. Publish the release.
22
22
1. Navigate to https://github.com/actions/cache/actions/workflows/release-new-action-version.yml
23
23
1. There should be a workflow run queued with the same version number.
24
-
1. Approve the run to publish the new version and update the major tags for this action.
24
+
1. Approve the run to publish the new version and update the major tags for this action.
25
25
26
26
## Changelog
27
27
28
+
### 5.1.0
29
+
30
+
- Bump `@actions/cache` to v5.1.0 to pick up [actions/toolkit#2435 Handle cache write error due to read-only token](https://github.com/actions/toolkit/pull/2435)
31
+
- Switch redundant "Cache save failed" warning to debug log in save-only
32
+
28
33
### 5.0.4
29
34
30
35
- Bump `minimatch` to v3.1.5 (fixes ReDoS via globstar patterns)
0 commit comments