-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit hook removes plugins from baseline (on version 0.8.8) #32
Comments
This is annoying indeed 👍 I'll work on this |
So this is a little worse than I initially thought, since IIRC the pre-commit hook will remove the plugins as soon as it auto-updates the baseline. The WhySo in secrets_collection.py we load the baseline in, but don't take However, we cannot just call assert args.plugins == {
'HexHighEntropyString': {
'hex_limit': [3],
},
'Base64HighEntropyString': {
'base64_limit': [4.5],
},
'PrivateKeyDetector': {},
} Not a list we have in [
{
'limit': 4.5,
'name': 'Base64HighEntropyString'
},
{
'limit': 3,
'name': 'HexHighEntropyString'
},
{
'name': 'PrivateKeyDetector'
}
] The SolutionSo I tried to see if calling Then I wondered how args = []
if init_values:
key = list(init_values.keys())[0]
args.append(init_values[key][0])
output.append(_initialize_plugin(plugin_name, *args)) This is bad b/c we're depending on the order of a After it is fixed to use |
Fixed 👍 🎈 |
The text was updated successfully, but these errors were encountered: