cache-action: implement RASTER_CACHE_REQUIRE_DIGEST (warn by default) #12

Merged
stephen merged 1 commit from fix/cache-require-digest-flag into main 2026-06-30 14:49:44 +00:00
Owner

Why

restore-impl.js always threw on a missing digest sidecar, but CHANGELOG documents warn-by-default and refuse only when RASTER_CACHE_REQUIRE_DIGEST=true — so pre-#2 caches were unrecoverable, and SECURITY.md contradicted CHANGELOG.

What

Honor RASTER_CACHE_REQUIRE_DIGEST: missing sidecar warns + restores by default; refuses only when the flag is true. Reconciled the docs.

Testing

Tests for both modes. Backlog rank 6.

## Why `restore-impl.js` always threw on a missing digest sidecar, but CHANGELOG documents warn-by-default and refuse only when `RASTER_CACHE_REQUIRE_DIGEST=true` — so pre-#2 caches were unrecoverable, and SECURITY.md contradicted CHANGELOG. ## What Honor `RASTER_CACHE_REQUIRE_DIGEST`: missing sidecar warns + restores by default; refuses only when the flag is true. Reconciled the docs. ## Testing Tests for both modes. Backlog rank 6.
Honor cache digest strict mode flag
All checks were successful
test / e2e (pull_request) Successful in 5s
test / unit (pull_request) Successful in 6s
test / e2e-post-save (pull_request) Successful in 23s
0dad8c12b8
stephen deleted branch fix/cache-require-digest-flag 2026-06-30 14:49:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/cache-action!12
No description provided.