As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub cache action.
Which input parameters are required for this action? (Choose two.)
A. dependency: the name and version of a package to cache or restore
B. key: the key created when saving a cache and the key used to search for a cache
C. cache-hit: the copy action key used with restore parameter to restore the data from the cache
D. path: the file path on the runner to cache or restore
E. ref: the ref name of the branch to access and restore a cache created
F. restore-keys: the copy action key used with cache parameter to cache the data
Explanation:
The key is required because it uniquely identifies the cache. It is used to store and retrieve cached data. When creating or restoring a cache, you need to define a key that will be used to identify the cache.
The path is the file path on the runner that you want to cache. This is where the cached files or dependencies are located and should be specified to tell GitHub where to store or retrieve the cache from.