112 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 fb50c36db8 Keep cache Azure dependencies compatible with Node 20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:28:41 +02:00
Bassem DghaidiandCopilot 312c7d23c2 Keep cache Azure dependencies compatible with Node 20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:27:08 +02:00
Bassem DghaidiandCopilot f8b8b7e5a5 Keep cache Azure dependencies compatible with Node 20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:25:40 +02: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
Jason Ginchereau 359fe7deed Audit fix packages/cache 2026-06-11 17:24:11 -07:00
Joshua Brooks c2bd8f1a98 Bump toolkit version, add release notes 2026-05-01 17:38:16 +00:00
Joshua Brooks 692639d142 Audit npm packages 2026-05-01 16:33:28 +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
copilot-swe-agent[bot]andTingluoHuang ad2490e451 Verify changes with tests - all package-specific tests passing
Co-authored-by: TingluoHuang <1750815+TingluoHuang@users.noreply.github.com>
2026-01-07 22:03:56 +00:00
Salman Muin Kayser Chishti 30a087c3c9 fix(cache): update @azure/storage-blob to ^12.29.1 to address punycode deprecation 2025-12-12 14:05:14 +00:00
Salman Muin Kayser Chishti 5e56f01027 update to core 2.0.1 which has exec 2.0.0 2025-12-11 13:54:17 +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 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 194748dabb package updates 2025-09-04 15:15:02 +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
Salman Muin Kayser Chishti 7533af2e97 updates 2025-07-31 23:48:44 +01:00
Bassem Dghaidi 6c3a8b03bb Optimise cache dependencies 2025-07-31 04:20:29 -07: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 0b168ac7fd update package-lock.json 2025-03-17 12:47:54 +00:00
Salman Chishti cd186258e8 masks the whole URL, update tests 2025-03-10 06:47:52 -07: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 01364ac182 Post merge cleanup 2024-11-14 02:04:20 -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
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
Chad Kimes 47a4cefdd9 Add option for concurrent cache downloads with timeout (#1484)
* Add option for concurrent cache downloads with timeout

* Add release notes

* Fix lint
2023-08-07 13:25:56 -04:00
Vallie Joseph ae457a26a1 Audit Fix (#1480)
* fixing audit failures

* replacing lerna bootstrap with npm command

* audit fix for cache and tool-cache

* updating tunnel

* upgrading core packages

* re-adding tunnel as prod dep

* updating dependencies

* updating exec deps

* updating exec io package

* .

* Revert

* updating packages

* adding core as dep

* updating learna config

* updating lerna commands

* Removing audit failing packages in cache + tool-cache

* updating contribution bootstrap description

* updating libraries

* prettier lint

* hiding stricter rules

* updating prettier command

* Removing unknown flag

* Adding eslint prettier

* ignoring sym links

* updating ignore path

* updating prettier rules

* changing prettier + github ver

* updating ts and ignores

* Revert ts

* Adding unknown ignores

* downgrading lerna

* .

* adding nx

* Adding lint auto lint rules

* updating eslint ignore for glob packages

* Adding subdirs to ignore

* adding flag for ignore pattern in linter

* Expanding ignore regex

* Adding ignore rules

* adding another ignore pattern to tsconfig eslint

* adding ignore pattern to eslintrc

* syncing package-json

* updating traverse

* .

* test adding core and http client to base package

* running npm ci

* adding tsconfig paths

* adding base URL

* Adding explicit path to core and http-client

* editing tsc call

* updating artifact packages

* force build

* updating lock file version

* updating lock file version

* upgrading node version

* Adding babel traverse back

* fixing build issue

* fixing typescript ver

* updating package json

* Adding ignore for artifact test

* adding ignore to flags

* unlink after test completes

* cleanup

* merge + package edit
2023-08-03 16:36:11 -04:00