Commit Graph
107 Commits
Author SHA1 Message Date
dependabot[bot] 3543b26e4d chore(deps): bump the cache-minor-patch group across 1 directory with 2 updates
Bumps the cache-minor-patch group with 2 updates in the /packages/cache directory: [@azure/core-rest-pipeline](https://github.com/Azure/azure-sdk-for-js/tree/HEAD/sdk/core/core-rest-pipeline) and [@azure/storage-blob](https://github.com/Azure/azure-sdk-for-js/tree/HEAD/sdk/storage/storage-blob).


Updates `@azure/core-rest-pipeline` from 1.23.0 to 1.25.0
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-js/commits/@azure/core-rest-pipeline_1.25.0/sdk/core/core-rest-pipeline)

Updates `@azure/storage-blob` from 12.31.0 to 12.34.0
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-js/commits/@azure/storage-blob_12.34.0/sdk/storage/storage-blob)

---
updated-dependencies:
- dependency-name: "@azure/core-rest-pipeline"
  dependency-version: 1.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cache-minor-patch
- dependency-name: "@azure/storage-blob"
  dependency-version: 12.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cache-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-30 18:34:02 +00:00
Bassem DghaidiandCopilot 5472e0e5c8 Keep cache Azure dependencies compatible with Node 20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:23:48 +02:00
Bassem DghaidiandCopilot 94e94ff3be Release @actions/cache 6.3.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 17:53:35 +02:00
Philip GaiandCopilot Autofix powered by AI 8d05a01e45 feat(cache): add cache-mode client behavior (read-denied warning + ACTIONS_CACHE_MODE skip) (#2447)
* feat(cache): surface cache read-denied as a distinct restore warning

Mirror the existing cache write-denied handling on the restore path. When
the receiver refuses a download URL because the run's token has no readable
cache scopes, it returns a twirp PermissionDenied (HTTP 403). The twirp
client wraps that 403 in a generic Error, so the stable 'cache read denied:'
prefix is embedded in the message rather than at the start.

- Add CACHE_READ_DENIED_PREFIX and CacheReadDeniedError
- Dispatch on the prefix in the restoreCacheV2 catch block (V2 only), log a
  policy-specific warning, and report a cache miss so the run continues
- Add a test mirroring the write-denied coverage

* chore(cache): trim comments, bump to 6.2.0, add RELEASES entry

* refactor(cache): dispatch read-denied by error name to mirror write path

Re-throw CacheReadDeniedError from an inner try/catch around
GetCacheEntryDownloadURL and dispatch on typedError.name in the outer catch,
matching how saveCacheV2 handles CacheWriteDeniedError.

* feat(cache): handle read-denied on the v1 restore path

Extend the read-denied handling to Cache Service v1 so GHES (which forces v1
via _apis/artifactcache) is covered when read-scope enforcement ships there.

- Surface the receiver's error body message from getCacheEntry instead of a
  generic status-code error, so the cache read denied: prefix reaches callers
- Re-throw CacheReadDeniedError from restoreCacheV1 and dispatch on it in the
  outer catch, mirroring restoreCacheV2 and the write-denied v1 handling
- Add a v1 read-denied test

* refactor(cache): only surface receiver body for read-denied on v1

* test(cache): assert getCacheEntry only surfaces body for read-denied

* test(cache): cover non-read-denied getCacheEntry passthrough on v1

* refactor(cache): share read-denied prefix via constants to avoid drift

* feat(cache): skip restore/save per ACTIONS_CACHE_MODE

* test(cache): expand ACTIONS_CACHE_MODE skip coverage across v1/v2 and unknown modes

* fix copilot pr feedback

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* docs(cache): remove internal reference from cache-mode comment

* test(cache): merge redundant cache-mode skip tests and simplify read-denied handling

Address PR review feedback:
- Merge the duplicate restore/save skip test.each blocks into single blocks parametrized over ACTIONS_CACHE_SERVICE_V2.
- Drop the redundant CacheReadDeniedError catch arms; the typed error is not an HttpClientError so it already falls through to a non-fatal warning.
- Clarify why read-denied classification happens both in getCacheEntry and cache.ts (dependency-free internal module cannot import the typed error).

* refactor(cache): drop redundant CacheWriteDeniedError catch arms

Mirror the read-denied simplification on the save path. CacheWriteDeniedError
is not an HttpClientError and its name does not match the ReserveCacheError
arm, so it falls through to the same non-fatal warning. Logging behavior is
unchanged (warns, never fails the run) and the exported type is still thrown
internally for consumers and tests. Also refresh stale doc wording.

* test(cache): collapse redundant restore getCacheEntry-failure tests

The two restoreCache tests exercised the identical warning + cache-miss path
now that read-denied is no longer reclassified in the catch, so merge them into
one. The read-denied prefix detection that actually branches on the message is
covered by getCacheEntry tests in cacheHttpClient.test.ts.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-13 10:03:16 -05:00
Jason Ginchereau 480b99fb38 Bump cache package to v6.1.0, update RELEASES.md (#2436) 2026-06-17 11:25:12 -10:00
Joshua Brooks c2bd8f1a98 Bump toolkit version, add release notes 2026-05-01 17:38:16 +00:00
Joshua Brooks 1aafa41eea Update minor versions of cache and artifact dependencies 2026-05-01 16:27:55 +00:00
Daniel Kennedy f0055b449b @actions/cache: convert to an ESM module (#2275)
* `@actions/cache`: convert to an ESM module

* Update the fixture to ESM syntax

* Update the cache workflows

* Bump `@actions/glob` to `0.6.1`

* Fix awaiting in the cache unit tests

* Fix a type issues in contracts

* Export the `DownloadOptions`/`UploadOptions` like before

* More cache test fixes

* Make the cache units tests better

* Add some more logging

* Add retries to restore-cache.mjs
2026-01-29 14:23:32 -05:00
Daniel Kennedy 298e1df765 Bump @actions/glob to 0.5.1 in @actions/cache 2026-01-27 15:43:44 -05:00
Daniel Kennedy b356064971 Bump @actions/http-client and @actions/github on all packages 2026-01-27 13:31:31 -05:00
Ryan Ghadimi e3ebd136a4 bump pkg 2026-01-16 09:46:28 +00:00
copilot-swe-agent[bot]andTingluoHuang c03ff60231 Update all packages to use @actions/http-client@^3.0.1 and bump patch versions
Co-authored-by: TingluoHuang <1750815+TingluoHuang@users.noreply.github.com>
2026-01-07 21:55:41 +00:00
Salman Muin Kayser Chishti 765c6a30ea docs(cache): bump to v5.0.1 and add release notes 2025-12-12 13:42:58 +00:00
Salman Muin Kayser Chishti 5571dcd36e fix(cache): update @azure/storage-blob to ^12.29.1 to fix punycode deprecation
- Updated @azure/storage-blob from ^12.13.0 to ^12.29.1
- Newer storage-blob uses @azure/core-rest-pipeline instead of deprecated @azure/core-http
- Fixes Node.js 24 deprecation warning for punycode module
2025-12-12 13:41:31 +00:00
Salman Muin Kayser Chishti e9192e9660 chore(cache): bump @actions/* dependencies to v2/v3
- @actions/core: ^1.11.1 → ^2.0.0
- @actions/exec: ^1.0.1 → ^2.0.0
- @actions/glob: ^0.1.0 → ^0.5.0
- @actions/http-client: ^2.1.1 → ^3.0.0
- @actions/io: ^1.0.1 → ^2.0.0
2025-12-10 11:38:25 +00:00
Salman Muin Kayser Chishti bb06c8e35a fix(cache): replace @azure/ms-rest-js with @azure/core-rest-pipeline
Remove abandoned @azure/ms-rest-js dependency which pulls in node-fetch@v2, causing punycode deprecation warnings on Node.js 24+.

The TransferProgressEvent type is now imported from @azure/core-rest-pipeline instead.
2025-12-10 11:23:06 +00:00
Salman Muin Kayser Chishti f1c646c956 Revert "Io util package usage update"
This reverts commit 783332a4b57e9455ec3a361c4e16f659a35f3a97.
2025-10-15 16:28:21 +01:00
Salman Muin Kayser Chishti 0dc8092148 Io util package usage update 2025-10-15 16:28:21 +01:00
Salman Muin Kayser Chishti 7ea272df82 override for node-fetch 2025-10-15 16:28:21 +01:00
Salman Muin Kayser Chishti e8cd7cd86f update with dist updates 2025-10-15 16:22:51 +01:00
Salman Muin Kayser Chishti 1524d73d50 Bump package versions, and fix issues 2025-09-04 14:16:27 +01:00
Salman Muin Kayser Chishti 197404083d remove engines 24 reuqirement from toolkit and fix test 2025-09-04 12:41:43 +01:00
Salman Muin Kayser Chishti fff3a02570 Merge branch 'main' into salmanmkc/node24 2025-08-08 03:54:30 +01:00
Bassem Dghaidi dcf05b46af Prepare release 4.0.5 2025-08-07 04:00:47 -07:00
Bassem Dghaidi ed73a9cf74 Replace @protobuf-ts/runtime with higher level dep @protobuf-ts/runtime-rpc 2025-08-07 03:21:24 -07:00
Bassem Dghaidi ffdfbf62e9 Reintroduce @protobuf-ts/runtime as a runtime dependency v2.11.1 2025-08-07 03:15:33 -07:00
Bassem Dghaidi 64b0793505 Prepare release 4.0.4 2025-08-06 11:37:53 -07:00
Salman Muin Kayser Chishti b07df54b1f support node 24 2025-07-31 23:37:22 +01:00
Bassem Dghaidi 8d73df03be Move @protobuf-ts/plugin to dev dependencies 2025-07-28 07:58:41 -07:00
Salman Chishti 3fe4261a00 Use patch instead of minor 2025-03-17 14:08:42 +00:00
Salman Chishti a3fda0276a change it to minor version instead of patch 2025-03-17 12:44:51 +00:00
Salman Chishti 37181a0c7e update versions for cache and artifact 2025-03-17 12:09:16 +00:00
Salman Chishti 330919bb70 Remove clean script 2025-03-10 06:51:30 -07:00
Salman Chishti cd186258e8 masks the whole URL, update tests 2025-03-10 06:47:52 -07:00
Salman Chishti 00d0e25088 Instead of using utility method in core lib, use method in both twirp clients 2025-03-07 06:01:25 -08:00
Rob Herley 8a4fdf5d3c cache: prep v4.0.2 release 2025-02-25 15:03:37 -05:00
Rob Herley 5813dd9b59 update manifests & release notes for cache v4.0.1 2025-02-14 11:02:13 -05:00
Rob Herley 61f222d41c remove runtime dependency on twirp-ts 2025-01-27 17:52:55 +00:00
Bassem Dghaidi 6d92f77218 Prepare @actions/cache 4.0.0 release 2024-12-03 02:40:00 -08:00
Bassem Dghaidi f1bb07f5f0 Update cache service APIs & cleanup 2024-11-20 13:53:47 -08:00
Bassem Dghaidi cbe822fd2c Remove unecessary packages from top level package.json 2024-11-14 06:36:42 -08:00
Bassem Dghaidi f8db8324e0 Merge branch 'main' into neo-cache-service 2024-11-14 02:02:55 -08:00
Josh Gross 9e416186e4 Prepare @actions/cache 3.3.0 release (#1871) 2024-11-01 13:32:42 -04:00
Bassem Dghaidi faa2ced415 Merge branch 'main' into neo-cache-service 2024-10-09 07:45:11 -07:00
Josh Gross 8d63d04876 Remove dependency on uuid package (#1824) 2024-10-02 12:28:06 -04:00
Bassem Dghaidi 735f4c343d Use zlib for compression 2024-06-13 03:16:59 -07:00
eggyhead a0f423e37c updating cache version and release to include ghes check change
Revert "updating cache version and release to include ghes check change"

This reverts commit 7185d8964514361b7b8dcdba1f9dd54ef24b8bdd.

updating cache version and release to include ghes check change
2024-01-31 21:23:20 +00:00
Rob Herley 0cedfb188b Update cache npm package version 2024-01-10 17:05:13 -05:00
Tatyana Kostromskaya 5faf8b69ab fix test + update semver 2023-09-26 11:10:18 +00:00
Tatyana Kostromskaya 48fe787a06 Update dependencies 2023-09-08 14:29:27 +00:00