chore(deps): update dependency gitleaks to v8.28.0 #14
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.
This PR contains the following updates:
8.24.0->8.28.0Release Notes
zricethezav/gitleaks (gitleaks)
v8.28.0Changelog
4fb4382cant countb1c9c7eComposite rules (#1905)72977e4feat: add Anthropic API key detection (#1910)7b02c98fix(git): handle port (#1912)2a7bcffdont prematurely calculate fragment newlines (#1909)bd79c3efeat(allowlist): promote optimizations (#1908)7fb4edaFix: CVEs on go and go crypto (#1868)a044b81feat: add artifactory reference token and api key detection (#1906)bf380d4sillyf487f85Update gitleaks.yml958f55aadd just like that, no leaksOptimizations
#1909 waits to find newlines until a match. This ends up saving a boat load of time since before we were finding newlines for every fragment regardless if a rule matched or not.
#1908 promoted @rgmz excellent stopword optimization
Composite Rules (Multi-part or
requiredRules) #1905In v8.28.0 Gitleaks introduced composite rules, which are made up of a single "primary" rule and one or more auxiliary or
requiredrules. To create a composite rule, add a[[rules.required]]table to the primary rule specifying anidand optionallywithinLinesand/orwithinColumnsproximity constraints. A fragment is a chunk of content that Gitleaks processes at once (typically a file, part of a file, or git diff), and proximity matching instructs the primary rule to only report a finding if the auxiliaryrequiredrules also find matches within the specified area of the fragment.Proximity matching: Using the
withinLinesandwithinColumnsfields instructs the primary rule to only report a finding if the auxiliaryrequiredrules also find matches within the specified proximity. You can set:withinLines: N- required findings must be within N lines (vertically)withinColumns: N- required findings must be within N characters (horizontally)Here are diagrams illustrating each proximity behavior:
v8.27.2Changelog
c7acf33Merge branch 'master' of github.com:gitleaks/gitleaks9faaa4aAdd experimental allowlist optimizations (#1731)79068b3Detect Notion Public API Keys #1889 (#1890)v8.27.1Changelog
80468efMerge branch 'master' of github.com:gitleaks/gitleaksef82237fix(atlassian): reduce false-positives for v1 pattern (#1892)2463f11Fix log suppresion issue (#1887)6f251eeAdded Heroku API Key New Version (#1883)20f9a1dAdd Platform Bitbucket (#1886)722ce82Add Platform Gitea (#1884)79780b8Merge branch 'master' of github.com:gitleaks/gitleaksc5683caprevent default warn message when max-archive-depth not set (#1881)0357c3cprevent default warn message when max-archive-depth not setv8.27.0Changelog
782f310Archive support (#1872)489d13cUpdate README.mdd29ee55Reduce aws-access-token false positives (#1876)611db65Setpass_filenamestofalsefor Docker hook (#1850)0589ae0unicode decoding (#1854)82f7e32Diagnostics (#1856)f97a9eechore: include decoder in debug log (#1853)Got another @bplaxco release. Cheers!
Archive Scanning
Sometimes secrets are packaged within archive files like zip files or tarballs,
making them difficult to discover. Now you can tell gitleaks to automatically
extract and scan the contents of archives. The flag
--max-archive-depthenables this feature for both
dirandgitscan types. The default value of"0" means this feature is disabled by default.
Recursive scanning is supported since archives can also contain other archives.
The
--max-archive-depthflag sets the recursion limit. Recursion stops whenthere are no new archives to extract, so setting a very high max depth just
sets the potential to go that deep. It will only go as deep as it needs to.
The findings for secrets located within an archive will include the path to the
file inside the archive. Inner paths are separated with
!.Example finding (shortened for brevity):
This means a secret was detected on line 4 of
files/.env.prod.which is inarchives/files.tarwhich is intestdata/archives/nested.tar.gz.Currently supported formats:
The compression
and archive
formats supported by mholt's archives package
are supported.
v8.26.0Changelog
78eebacPercent/URL Decoding Support (#1831)6f967cafix(kubernetes): remove slow element from pat (#1848)88f56d3feat: identify slow file (#1479)9609928rm 1password detect test since we test it in cfg gen23cb69ffeat(rules): Add 1Password secret key detection (#1834)Calling this one @bplaxco's release as he introduced a really clever method for mixed decoding without sacrificing too much performance. As I stated in his PR, I think he's either a wizard or some time traveling AI. Dude is wicked smaht
Anyways, Gitleaks now supports the following decoders:
hex,percent(url enconding), andb64. It's relatively straight forward to add a new decoder so if you're motivated, community contributions are welcomed!Here's an example:
v8.25.1Changelog
d1c7759fix(detect): test all allowlists (#1845)Big thanks @rgmz
v8.24.3Changelog
107a418Add support for GitLab Runner Tokens (Routable) (#1820)7fac002bump repo version in pre-commit example (#1815)4b54104Fix currentLine out of bounds error (#1810)af7d5bcadd support for Azure DevOps platform in SCM detection and link (#1807)3e8cd2dAdd MaxMind license key rule (#1771)ddcc753implement new openai regex pattern (#1780)9708e65A first attempt adding hooks.slack.com/triggers/ (#1792)198e410feat(generic): tweak false-positives (#1803)e273a97chore: tweak logging and readme for GITLEAKS_CONFIG_TOML feature (#1802)a503b58feat: add option to set config from env var with toml content (#1662)v8.24.2What's Changed
platformflag being ignored withgitleaks detectby @rgmz in gitleaks#1765report-formatfromreport-pathextension if no value is provided by @rgmz in gitleaks#1776generic-api-key: ignore csrf-tokens by @rgmz in gitleaks#1779New Contributors
Full Changelog: gitleaks/gitleaks@v8.24.0...v8.24.2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.