You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(security): update minimatch for the Actions cache - #1844
The Actions cache can keep finding blob directories with minimatch 11.0.9. Patch its glob walker to use the public partial-match API and drop the vulnerable 10.2.6 pin behind Dependabot alerts #373 and #493.
Medium Risk
Glob matching behavior for CI cache archives changes with minimatch 11; regression risk is mitigated by a targeted patch and new resolvePaths test, but wrong matches could affect what gets cached or restored.
Overview
Addresses Dependabot alerts on minimatch by letting @actions/glob (used by @actions/cache) resolve to minimatch 11.0.9 instead of pinning 10.2.6.
@actions/glob@0.7.0 is patched so partialMatch calls the public minimatch.match(itemPath, true) API instead of the removed internal matchOne, while keeping the existing root-path handling unchanged. The dedicated @actions/glob@0.7.0>minimatch override is removed and the patch is registered under patchedDependencies (lockfile refreshed accordingly).
A unit test exercises resolvePaths from @actions/cache with directory globs, nested */* patterns, and negation so cache save/restore path resolution still works with the patched stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Actions cache can keep finding blob directories with minimatch 11.0.9. Patch its glob walker to use the public partial-match API and drop the vulnerable 10.2.6 pin behind Dependabot alerts #373 and #493.