Update @actions/cache to 5.1.0 and add security overrides for undici and fast-xml-parser (#1579)
* Update @actions/cache to 5.1.0, add security overrides for undici and fast-xml-parser, update licenses * Fix debug message for unchanged cache validation in tests * Fix formatting in cache validation test for unchanged cache * Bump version to 6.5.0
This commit is contained in:
parent
48b55a011b
commit
249970729c
16 changed files with 985 additions and 24294 deletions
|
|
@ -62,7 +62,11 @@ const cachePackages = async (packageManager: string) => {
|
|||
}
|
||||
|
||||
const cacheId = await cache.saveCache(cachePaths, primaryKey);
|
||||
if (cacheId == -1) {
|
||||
if (cacheId === -1) {
|
||||
// saveCache returns -1 without throwing when the cache was not saved, e.g.
|
||||
// a reserve collision or a read-only token (fork PR). @actions/cache has
|
||||
// already logged the reason at the appropriate severity, so just trace it.
|
||||
core.debug(`Cache was not saved for the key: ${primaryKey}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue