Detect-secrets

Latest version: v1.4.0

Safety actively analyzes 619231 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

1.4.0

October 4th, 2022

:newspaper: News
- We're dropping support for Python 3.6 starting v1.5.0! Python 3.6 reached EOL on December 23, 2021 and, therefore, is currently unsupported. We hope this announcement gives you plenty of time to upgrade your project, if needed.

:mega: Release Highlights
- Improved filtering by excluding secrets that have already been detected by a regex-based detector ([612])
:tada: New Features
- Added a detector for Discord bot tokens ([614])

:sparkles: Usability
- Improved the audit report to make it easier to parse programmatically ([619])
:telescope: Accuracy
- Improve ArtifactoryDetector plugin to reduce false positives ([499])

:bug: Bugfixes
- Fixed the verify flow in audit report by adding the code snippet of the verified secret ([620])
- Fixed deploy process to be environment configuration independent ([625])

:snake: Miscellaneous
- Added support for .NET packages.lock.json files in the heuristic filter ([593])
- Multiple dependency updates

[499]: https://github.com/Yelp/detect-secrets/pull/499
[556]: https://github.com/Yelp/detect-secrets/pull/556
[589]: https://github.com/Yelp/detect-secrets/pull/589
[593]: https://github.com/Yelp/detect-secrets/pull/593
[598]: https://github.com/Yelp/detect-secrets/pull/598
[612]: https://github.com/Yelp/detect-secrets/pull/612
[614]: https://github.com/Yelp/detect-secrets/pull/614
[615]: https://github.com/Yelp/detect-secrets/pull/615
[616]: https://github.com/Yelp/detect-secrets/pull/616
[619]: https://github.com/Yelp/detect-secrets/pull/619
[620]: https://github.com/Yelp/detect-secrets/pull/620
[625]: https://github.com/Yelp/detect-secrets/pull/625

1.3.0

July 22nd, 2022

:mega: Release Highlights
- Add Windows operating system to Github CI Action ([528])
- Enable dependabot for automated dependency updates built into GitHub ([531])
- Improve performance for array slice ([555])

:tada: New Features
- Improve keyword plugin to detect arrow key assignment ([567])
- Add command line argument for `detect-secrets-hook` to return output as json ([569])

:bug: Bugfixes
- Fix regex matching for `npm` plugin ([551])
- Fix `audit` crashing when secret is not found on specified line ([568])
- Fix ` pragma: allowlist nextline secret` secrets not filtered out of result set ([575])
- Fix `is_verified` flag not stored in `PotentialSecret` ([578])

:snake: Miscellaneous
- Only use ANSI color code in environments that support it ([523])
- Multiple dependency updates
- Make `is_likely_id_string` heuristic filter more strict to avoid eliminating true positives ([526])
- Refactor AWS access key regex to minimize false positives ([571])
- Correct spelling errors in code repository ([574])
- Add `py.typed` to enable type hints for package consumers ([579])

[523]: https://github.com/Yelp/detect-secrets/pull/523
[526]: https://github.com/Yelp/detect-secrets/pull/526
[528]: https://github.com/Yelp/detect-secrets/pull/528
[529]: https://github.com/Yelp/detect-secrets/pull/529
[530]: https://github.com/Yelp/detect-secrets/pull/530
[531]: https://github.com/Yelp/detect-secrets/pull/531
[532]: https://github.com/Yelp/detect-secrets/pull/532
[533]: https://github.com/Yelp/detect-secrets/pull/533
[535]: https://github.com/Yelp/detect-secrets/pull/535
[537]: https://github.com/Yelp/detect-secrets/pull/537
[538]: https://github.com/Yelp/detect-secrets/pull/538
[542]: https://github.com/Yelp/detect-secrets/pull/542
[543]: https://github.com/Yelp/detect-secrets/pull/543
[545]: https://github.com/Yelp/detect-secrets/pull/545
[546]: https://github.com/Yelp/detect-secrets/pull/546
[551]: https://github.com/Yelp/detect-secrets/pull/551
[555]: https://github.com/Yelp/detect-secrets/pull/555
[567]: https://github.com/Yelp/detect-secrets/pull/567
[568]: https://github.com/Yelp/detect-secrets/pull/568
[569]: https://github.com/Yelp/detect-secrets/pull/569
[571]: https://github.com/Yelp/detect-secrets/pull/571
[574]: https://github.com/Yelp/detect-secrets/pull/574
[575]: https://github.com/Yelp/detect-secrets/pull/575
[576]: https://github.com/Yelp/detect-secrets/pull/576
[578]: https://github.com/Yelp/detect-secrets/pull/578
[579]: https://github.com/Yelp/detect-secrets/pull/579

1.2.0

February 16th, 2022

:mega: Release Highlights
- Continuous integration github action added ([506])
- Release pipeline github action added ([513])

:tada: New Features

- New GitHub token plugin added ([465])
- New SendGrid plugin added ([463])
- More new ignored file extensions

:bug: Bugfixes
- Fixes catastrophic backtracking for indirect reference heuristic ([509])
- Fixes pre-commit hook secret equality checking causing updates to baseline with no real changes - only a timestamp update ([507])
- Fixes python 3.8 failing to load plugins on windows and macos ([505])
- Fixes yaml transformer inline dictionary index out of bounds exceptions ([501])
- Fixes regex for slack url ([477])
- Fixes `AttributeError: 'PotentialSecret' object has no attribute 'line_number'` by safely falling back to 0 if line_number isn't present. ([476])([472])
- Fixes gibberish-detector current version
- Fixes filtering ordering in .secrets.baseline

:snake: Miscellaneous

- Updated README due hook failing to interpret filenames with spaces ([470])
- Add CI github action badge to README
- Development dependency bumps ([519])

[463]: https://github.com/Yelp/detect-secrets/pull/463
[465]: https://github.com/Yelp/detect-secrets/pull/465
[470]: https://github.com/Yelp/detect-secrets/pull/470
[472]: https://github.com/Yelp/detect-secrets/pull/472
[476]: https://github.com/Yelp/detect-secrets/pull/476
[477]: https://github.com/Yelp/detect-secrets/pull/477
[501]: https://github.com/Yelp/detect-secrets/pull/501
[505]: https://github.com/Yelp/detect-secrets/pull/505
[506]: https://github.com/Yelp/detect-secrets/pull/506
[507]: https://github.com/Yelp/detect-secrets/pull/507
[509]: https://github.com/Yelp/detect-secrets/pull/509
[513]: https://github.com/Yelp/detect-secrets/pull/513
[519]: https://github.com/Yelp/detect-secrets/pull/519

1.1.0

April 14th, 2021

:mega: Release Highlights

- New gibberish filter added ([416])
- Multiprocessing support, for faster scans! ([441])
- Support for scanning different directories (rather than the current directory) ([440])

:tada: New Features

- `KeywordDetector` supports whitespace secrets ([414])
- `KeywordDetector` now supports prefix/suffixed keywords, and accuracy updates
- Adding alphanumerical filter to ensure secrets have at least one letter/number in them ([428])
- New filter added for ignoring common lock files ([417])
- More new ignored file extensions
- Adding filter to ignore swagger files
- Added `audit --report` to extract secret values with a baseline
([387], thanks [pablosantiagolopez], [syn-4ck])

:telescope: Accuracy

- `KeywordDetector` now defaults to requiring quotes around secrets ([448])
- `KeywordDetector` now searches for more keywords ([430])

:bug: Bugfixes

- Filter caches are cleared when swapping between different `Settings` objects ([444])
- Upgrading baselines from <0.12 migrates `exclude` to `exclude-files` rather than `exclude-lines`
([446])

:snake: Miscellaneous

- More verbose logging, to help with debugging issues ([432])
- YAMLTransformer handles binary entries differently

[387]: https://github.com/Yelp/detect-secrets/pull/387
[414]: https://github.com/Yelp/detect-secrets/pull/414
[416]: https://github.com/Yelp/detect-secrets/pull/416
[417]: https://github.com/Yelp/detect-secrets/pull/417
[428]: https://github.com/Yelp/detect-secrets/pull/428
[430]: https://github.com/Yelp/detect-secrets/pull/430
[432]: https://github.com/Yelp/detect-secrets/pull/432
[440]: https://github.com/Yelp/detect-secrets/pull/440
[441]: https://github.com/Yelp/detect-secrets/pull/441
[444]: https://github.com/Yelp/detect-secrets/pull/444
[446]: https://github.com/Yelp/detect-secrets/pull/446
[448]: https://github.com/Yelp/detect-secrets/pull/448
[syn-4ck]: https://github.com/syn-4ck

1.0.3

February 26th, 2021

:bug: Bugfixes

- Fixes `SecretsCollection` subtraction method, to handle non-overlapping files.
- Fixes installation for Windows environments ([412], thanks [pablosantiagolopez])

[412]: https://github.com/Yelp/detect-secrets/pull/412
[pablosantiagolopez]: https://github.com/pablosantiagolopez

1.0.2

February 25th, 2021

:bug: Bugfixes

- `KeywordDetector` is no longer case-sensitive.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.