Skip to content

fix: Add pnpm-lock.yaml to is_lock_file filter#962

Open
Mallikarjunadevops wants to merge 1 commit into
Yelp:masterfrom
Mallikarjunadevops:fix-pnpm-lockfile
Open

fix: Add pnpm-lock.yaml to is_lock_file filter#962
Mallikarjunadevops wants to merge 1 commit into
Yelp:masterfrom
Mallikarjunadevops:fix-pnpm-lockfile

Conversation

@Mallikarjunadevops
Copy link
Copy Markdown

Issue 945: is_lock_file does not filter pnpm-lock.yaml

What kind of change does this PR introduce?
Bug fix

What is the current behavior?
is_lock_file filter ignores pnpm-lock.yaml, leading to false positives inside this lockfile during detect-secrets scan operations. (Fixes #945)

What is the new behavior?
Added 'pnpm-lock.yaml' to the set of ignored lock files in detect_secrets/filters/heuristic.py. This ensures pnpm lock files are correctly excluded from scanning, identical to yarn.lock and package-lock.json.

Does this PR introduce a breaking change?
No

Other information:
Added test case in tests/filters/heuristic_filter_test.py to confirm is_lock_file('pnpm-lock.yaml') evaluates to True.

Testing Evidence

Pytest completed successfully for all test cases in tests/filters/heuristic_filter_test.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_lock_file does not filter pnpm-lock.yaml

1 participant