As can be seen in the first part of the log, the cache key is frontend-. It's missing a hash because I passed in a reference that could not be resolved. And yet, actions/cache/restore picks a cache object and uses it, silently.
Correct me if I'm wrong, but setting fail-on-cache-miss to True would not have helped to prevent this behavior.
EDIT: In reading more of the docs, this section regarding restore-keys seems to describe the behavior I'm seeing. It's as if there's a default value for restore-keys (I'm definitely not passing one in).
In a workflow job, I mistakenly use an empty/null variable reference as part of a cache key:
There are many objects in the repository cache:
Logs (and site behavior) show that a cache object was retrieved:
As can be seen in the first part of the log, the cache key is
frontend-
. It's missing a hash because I passed in a reference that could not be resolved. And yet, actions/cache/restore picks a cache object and uses it, silently.Correct me if I'm wrong, but setting
fail-on-cache-miss
toTrue
would not have helped to prevent this behavior.EDIT: In reading more of the docs, this section regarding
restore-keys
seems to describe the behavior I'm seeing. It's as if there's a default value forrestore-keys
(I'm definitely not passing one in).