actions / actions/cache

actions/cache/save key match incorrect

Open
#1,673 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Image Image Image

primaryKey from Inputs.Key but restoredKey would always be undefined

Image

it will always throw to catch when them same cache key hit

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the actions/cache/save flow and trace how Inputs.Key becomes primaryKey and how restoredKey is obtained. Reproduce a cache hit where the keys match, then verify the save action handles that match without throwing and that the key comparison uses the intended values.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.