Skip to content
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

chore(deps): update pre-commit hook zricethezav/gitleaks to v8.22.1 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 9, 2022

This PR contains the following updates:

Package Type Update Change
zricethezav/gitleaks repository minor v8.5.3 -> v8.22.1

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

zricethezav/gitleaks (zricethezav/gitleaks)

v8.22.1

Compare Source

v8.22.0

Compare Source

Changelog


This bumps the gitleaks binary size from around 8.5MB to 15MB but yields 2-4x speedup. Worth it imo. If you feel strongly against this change feel free to open an issue where we can discuss the tradeoffs in more depth. Credit to @​ahrav

v8.21.4

Compare Source

Changelog

v8.21.3

Compare Source

Changelog

v8.21.2

Compare Source

Changelog

v8.21.1

Compare Source

Changelog

v8.21.0

Compare Source

Changelog

respect @​rgmz @​9999years

⚠️ Note: you may find some findings that were previously ignored if using .gitleaksignore pop up in your scans. This is due to a fix for a long standing bug where gitleaks would incorrectly report merge commit SHAs instead of the actual commit where a secret was introduced. See the following issues for more context:

v8.20.1

Compare Source

Changelog

v8.20.0

Compare Source

Changelog

Huge huge thanks to @​bplaxco for supporting b64 decoding, @​recreator66 for bug fixes, and to @​rgmz for his continued support of the project in the form of PRs and reviews. Thanks you!

New Feature: Decoding

Sometimes secrets are encoded in a way that can make them difficult to find
with just regex. Now you can tell gitleaks to automatically find and decode
encoded text. The flag --max-decode-depth enables this feature (the default
value "0" means the feature is disabled by default).

Recursive decoding is supported since decoded text can also contain encoded
text. The flag --max-decode-depth sets the recursion limit. Recursion stops
when there are no new segments of encoded text to decode, so setting a really
high max depth doesn't mean it will make that many passes. It will only make as
many as it needs to decode the text. Overall, decoding only minimally increases
scan times.

The findings for encoded text differ from normal findings in the following
ways:

  • The location points the bounds of the encoded text
    • If the rule matches outside the encoded text, the bounds are adjusted to
      include that as well
  • The match and secret contain the decoded value
  • Two tags are added decoded:<encoding> and decode-depth:<depth>

Currently supported encodings:

  • base64 (both standard and base64url)

v8.19.3

Compare Source

Changelog

v8.19.2

Compare Source

Changelog

v8.19.1

Compare Source

Changelog

v8.19.0

Compare Source

Changelog

v8.18.4

Compare Source

Changelog

Shout out to @​coderabbit for their sponsorship!

v8.18.3

Compare Source

Changelog

v8.18.2

Compare Source

Changelog

v8.18.1

Compare Source

Changelog

v8.18.0

Compare Source

What's Changed

New Contributors

Full Changelog: gitleaks/gitleaks@v8.17.0...v8.18.0

v8.17.0

Compare Source

What's Changed

New Contributors

Full Changelog: gitleaks/gitleaks@v8.16.4...v8.17.0

v8.16.4

Compare Source

Changelog

v8.16.3

Compare Source

Changelog

Huuuuuge thank you to all the contributors especially @​rgmz

@​edwardwang888 @​wparad @​sadikkuzu @​RafaelFigueiredo @​fgreinacher @​jasikpark @​sergiomarotco

v8.16.2

Compare Source

Changelog

Thanks to @​americanair for sponsoring this open source project!

Thanks to all the contributors this release: @​fgreinacher @​wparad @​RafaelFigueiredo @​sergiomarotco @​jasikpark

v8.16.1

Compare Source

Changelog

v8.16.0

Compare Source

Changelog

Allowlist Regex Targets

Let's use the generic rule to demonstrate the new regexTarget allowlist option

[[rules]]
description = "Generic API Key"
id = "generic-api-key"
regex = '''(?i)(?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
entropy = 3.5
keywords = [
    "key","api","token","secret","client","passwd","password","auth","access",
]

example.txt will be our target and contain a single line with a fake secret:

var discord_client_secret = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ'

Running gitleaks on this file using the generic rule will return one finding:

gitleaks detect --source=example.txt --no-git -v --config=example.toml

    ○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

Finding:     discord_client_secret = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ'
Secret:      8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ
RuleID:      generic-api-key
Entropy:     4.413910
File:        example.txt
Line:        1
Fingerprint: example.txt:generic-api-key:1

We can add a allowlist regexes entry to include part of the secret. This will cause gitleaks to ignore the finding above.
Note that by default gitleaks uses the Secret to compare against allowlist regexes.

Adding the following allowlist to the generic rule will cause gitleaks to ignore the finding:

[rules.allowlist]
regexes = ["vV"]

But now say you don't want to use Secret to compare against your allowlist regexes. Well, now you can use regexTarget and set the value as either line or match to compare against the line or regex match:

[rules.allowlist]
regexTarget = "match"
regexes = ["discord"]

and

[rules.allowlist]
regexTarget = "line"
regexes = ["var"]

will both result in the finding being ignored because discord is found in the generic rule regex match and var is in the line where the finding was found.

In addition to rule allowlists, you can set regexTarget in the global allowlist:

[allowlist]
regexTarget = "line"
regexes = ["var"]

Thanks @​bplaxco for the review

v8.15.4

Compare Source

Changelog

Shouts outs to @​sandyydk @​raffis @​lawndoc @​sadikkuzu

v8.15.3

Compare Source

Changelog

v8.15.2

[Compare Source](https://redirect.github.com/z


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.6.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.0 Apr 17, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from bf5274d to 2e65b4c Compare April 17, 2022 00:02
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.1 Apr 19, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 2e65b4c to 1ff9dfc Compare April 19, 2022 02:14
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.2 Apr 21, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 1ff9dfc to 359f7fe Compare April 21, 2022 04:07
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.7.2 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.0 Apr 21, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 359f7fe to 8513210 Compare April 21, 2022 15:16
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.1 Apr 22, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 8513210 to a4d1357 Compare April 22, 2022 00:38
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.2 Apr 23, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from a4d1357 to cf6cb44 Compare April 23, 2022 16:42
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.2 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.3 Apr 27, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from cf6cb44 to cc7a945 Compare April 27, 2022 14:41
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.3 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.4 Apr 28, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from cc7a945 to 04700ca Compare April 28, 2022 05:35
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.4 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.5 May 25, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 04700ca to fbc454e Compare May 25, 2022 14:06
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.5 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.6 May 28, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from fbc454e to f87c8b8 Compare May 28, 2022 19:02
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.6 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.7 Jun 2, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from f87c8b8 to 4de3b1a Compare June 2, 2022 22:19
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 4de3b1a to ca695f8 Compare June 23, 2022 23:38
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.7 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.8 Jun 23, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from ca695f8 to e8b0bcc Compare September 25, 2022 13:02
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.8.8 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.13.0 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from e8b0bcc to 8c26b63 Compare November 20, 2022 13:39
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.13.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.15.0 Nov 20, 2022
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.15.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.16.0 Mar 13, 2023
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 8c26b63 to 0221dd9 Compare March 13, 2023 23:38
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.2 Feb 1, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 36f96b3 to 1589e57 Compare June 1, 2024 20:11
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.2 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.3 Jun 1, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 1589e57 to 47e0700 Compare June 14, 2024 17:04
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.3 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.4 Jun 14, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 47e0700 to 0ab4fc5 Compare September 14, 2024 04:29
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.18.4 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.0 Sep 14, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 0ab4fc5 to 2dc2dd2 Compare September 14, 2024 11:07
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.1 Sep 14, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 2dc2dd2 to c422886 Compare September 16, 2024 20:13
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.2 Sep 16, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from c422886 to c0eed49 Compare September 26, 2024 16:00
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.2 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.3 Sep 26, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from c0eed49 to 3553df6 Compare October 3, 2024 16:39
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.19.3 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.20.0 Oct 3, 2024
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.20.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.20.1 Oct 7, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 3553df6 to fdf8f94 Compare October 7, 2024 18:25
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from fdf8f94 to 3612cf3 Compare October 15, 2024 04:41
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.20.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.0 Oct 15, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 3612cf3 to cd0b239 Compare October 18, 2024 13:22
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.1 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from cd0b239 to e2ef239 Compare October 28, 2024 16:31
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.1 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.2 Oct 28, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from e2ef239 to 85d2412 Compare December 19, 2024 23:25
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.2 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.3 Dec 19, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 85d2412 to ad48bc2 Compare December 20, 2024 18:08
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.21.3 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.22.0 Dec 20, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from ad48bc2 to 571e2fd Compare December 30, 2024 20:26
@renovate renovate bot changed the title chore(deps): update pre-commit hook zricethezav/gitleaks to v8.22.0 chore(deps): update pre-commit hook zricethezav/gitleaks to v8.22.1 Dec 30, 2024
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.

0 participants