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
Fix has_manifest_files failing to match root-level manifest files (#168)
* Fix has_manifest_files failing to match root-level manifest files
PurePath.match("**/package.json") returns False for root-level files
in Python 3.12+ because ** requires at least one directory component.
The function was unconditionally prepending **/ to all patterns,
causing root-level manifests like package.json and package-lock.json
to never match. This forced every scan into full scan mode instead of
diff scan mode, which meant MR/PR comments were never posted.
Fix by trying the direct pattern match first, then falling back to
the **/ prefixed pattern for subdirectory matching.
Fixes Zendesk #2447
* Bump version to 2.2.77
* Add tests/core to CI trigger paths and test command
* Fixing compatibility drift between CLI <> SDK surfaced by test failures
Signed-off-by: lelia <lelia@socket.dev>
* Fixing core test failures caused by updated stale fixtures, outdated test construction
Signed-off-by: lelia <lelia@socket.dev>
---------
Signed-off-by: lelia <lelia@socket.dev>
Co-authored-by: lelia <lelia@socket.dev>
0 commit comments