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

deps:chore - update zricethezav/gitleaks Docker tag to v8.23.3 #1092

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 25, 2022

This PR contains the following updates:

Package Type Update Change
zricethezav/gitleaks final minor v8.8.7 -> v8.23.3

Release Notes

gitleaks/gitleaks (zricethezav/gitleaks)

v8.23.3

Compare Source

Changelog

v8.23.2

Compare Source

Changelog

v8.23.1

Compare Source

Changelog

v8.23.0

Compare Source

Changelog

READ THIS!!! The default gitleaks config now uses [[rules.allowlists]]

##### ⚠️ In v8.21.0 `[rules.allowlist]` was replaced with `[[rules.allowlists]]`.
##### This change was backwards-compatible: instances of `[rules.allowlist]` still  work.
    #

##### You can define multiple allowlists for a rule to reduce false positives.
##### A finding will be ignored if _ANY_ `[[rules.allowlists]]` matches.
    [[rules.allowlists]]
    description = "ignore commit A"

##### When multiple criteria are defined the default condition is "OR".
##### e.g., this can match on |commits| OR |paths| OR |stopwords|.
    condition = "OR"
    commits = [ "commit-A", "commit-B"]
    paths = [
      '''go\.mod''',
      '''go\.sum'''
    ]

##### note: stopwords targets the extracted secret, not the entire regex match
##### like 'regexes' does. (stopwords introduced in 8.8.0)
    stopwords = [
      '''client''',
      '''endpoint''',
    ]

    [[rules.allowlists]]

##### The "AND" condition can be used to make sure all criteria match.
##### e.g., this matches if |regexes| AND |paths| are satisfied.
    condition = "AND"

##### note: |regexes| defaults to check the _Secret_ in the finding.
##### Acceptable values for |regexTarget| are "secret" (default), "match", and "line".
    regexTarget = "match"
    regexes = [ '''(?i)parseur[il]''' ]
    paths = [ '''package-lock\.json''' ]

v8.22.1

Compare Source

Changelog

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.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.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


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 is behind base branch, 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 requested review from a team June 25, 2022 02:05
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.8.8 deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.8 Jun 27, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 4c3582c to 21a7dcd Compare June 27, 2022 19:49
@renovate renovate bot changed the title deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.8 deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.9 Jun 27, 2022
@renovate renovate bot changed the title deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.9 deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.10 Jun 27, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 21a7dcd to 283ab4b Compare June 27, 2022 22:43
@renovate renovate bot changed the title deps:chore -: deps:chore - update dependency zricethezav/gitleaks to v8.8.10 deps:chore - update dependency zricethezav/gitleaks to v8.8.10 Jun 28, 2022
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.8.10 deps:chore - update dependency zricethezav/gitleaks to v8.8.11 Jun 28, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 283ab4b to 3e74fc7 Compare June 28, 2022 11:57
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 3e74fc7 to 09a802b Compare July 11, 2022 18:28
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.8.11 deps:chore - update dependency zricethezav/gitleaks to v8.8.12 Jul 11, 2022
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.8.12 deps:chore - update dependency zricethezav/gitleaks to v8.9.0 Jul 28, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 09a802b to 190b900 Compare July 28, 2022 01:38
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 190b900 to 242bf45 Compare August 7, 2022 18:59
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.9.0 deps:chore - update dependency zricethezav/gitleaks to v8.10.0 Aug 7, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 242bf45 to d0cb7f3 Compare August 8, 2022 13:48
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.10.0 deps:chore - update dependency zricethezav/gitleaks to v8.10.1 Aug 8, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from d0cb7f3 to d1fc93e Compare August 8, 2022 21:13
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.10.1 deps:chore - update dependency zricethezav/gitleaks to v8.10.2 Aug 8, 2022
@renovate renovate bot changed the title deps:chore - update dependency zricethezav/gitleaks to v8.10.2 deps:chore - update zricethezav/gitleaks Docker tag to v8.10.2 Aug 10, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from d1fc93e to 400aada Compare August 12, 2022 16:39
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.10.2 deps:chore - update zricethezav/gitleaks Docker tag to v8.10.3 Aug 12, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 400aada to 2783fb9 Compare August 17, 2022 03:00
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.10.3 deps:chore - update zricethezav/gitleaks Docker tag to v8.11.0 Aug 17, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 2783fb9 to f8693a7 Compare September 25, 2022 13:54
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.11.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.13.0 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from f8693a7 to f7f53fc Compare November 20, 2022 10:55
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.13.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.15.0 Nov 20, 2022
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 046932e to c1dcdd4 Compare September 14, 2024 04:37
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.18.4 deps:chore - update zricethezav/gitleaks Docker tag to v8.19.0 Sep 14, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from c1dcdd4 to 838dae8 Compare September 14, 2024 10:35
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.19.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.19.1 Sep 14, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 838dae8 to ca3f0a9 Compare September 16, 2024 15:46
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.19.1 deps:chore - update zricethezav/gitleaks Docker tag to v8.19.2 Sep 16, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from ca3f0a9 to db3cc51 Compare September 26, 2024 16:02
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.19.2 deps:chore - update zricethezav/gitleaks Docker tag to v8.19.3 Sep 26, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from db3cc51 to 21225be Compare October 7, 2024 18:25
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.19.3 deps:chore - update zricethezav/gitleaks Docker tag to v8.20.1 Oct 7, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 21225be to 5de4b9e Compare October 15, 2024 03:39
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.20.1 deps:chore - update zricethezav/gitleaks Docker tag to v8.21.0 Oct 15, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 5de4b9e to 8271ca5 Compare October 18, 2024 12:40
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.21.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.21.1 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 8271ca5 to 5697a56 Compare October 28, 2024 17:03
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.21.1 deps:chore - update zricethezav/gitleaks Docker tag to v8.21.2 Oct 28, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 5697a56 to 80a2554 Compare December 20, 2024 20:43
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.21.2 deps:chore - update zricethezav/gitleaks Docker tag to v8.22.0 Dec 20, 2024
@snykbotzup
Copy link

snykbotzup commented Dec 20, 2024

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 80a2554 to 2b4affa Compare December 30, 2024 18:30
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.22.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.22.1 Dec 30, 2024
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 2b4affa to 3d14ca7 Compare January 13, 2025 17:09
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.22.1 deps:chore - update zricethezav/gitleaks Docker tag to v8.23.0 Jan 13, 2025
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 3d14ca7 to 2a2da26 Compare January 15, 2025 13:12
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.23.0 deps:chore - update zricethezav/gitleaks Docker tag to v8.23.1 Jan 15, 2025
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 2a2da26 to 199acb7 Compare January 24, 2025 17:34
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.23.1 deps:chore - update zricethezav/gitleaks Docker tag to v8.23.2 Jan 24, 2025
Signed-off-by: Renovate Bot <bot@renovateapp.com>
@renovate renovate bot force-pushed the renovate/zricethezav-gitleaks-8.x branch from 199acb7 to 9d9aaf9 Compare January 29, 2025 18:03
@renovate renovate bot changed the title deps:chore - update zricethezav/gitleaks Docker tag to v8.23.2 deps:chore - update zricethezav/gitleaks Docker tag to v8.23.3 Jan 29, 2025
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.

1 participant