Skip to content

chore(deps): update pre-commit-dependencies

Soos requested to merge renovate/pre-commit-dependencies into main

This MR contains the following updates:

Package Type Update Change
adrienverge/yamllint repository minor v1.26.3 -> v1.31.0
compilerla/conventional-pre-commit repository minor v1.3.0 -> v1.4.0
pre-commit/mirrors-eslint repository minor v8.1.0 -> v8.39.0
pre-commit/pre-commit minor 3.1.1 -> 3.2.2
pre-commit/pre-commit-hooks repository minor v4.2.0 -> v4.4.0
zricethezav/gitleaks repository minor v8.9.0 -> v8.16.3

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

adrienverge/yamllint

v1.31.0

Compare Source

v1.30.0

Compare Source

v1.29.0

Compare Source

v1.28.0

Compare Source

v1.27.1

Compare Source

v1.27.0

Compare Source

compilerla/conventional-pre-commit

v1.4.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/compilerla/conventional-pre-commit/compare/v1.3.0...v1.4.0

pre-commit/mirrors-eslint

v8.39.0

Compare Source

v8.38.0

Compare Source

v8.37.0

Compare Source

v8.36.0

Compare Source

v8.35.0

Compare Source

v8.34.0

Compare Source

v8.33.0

Compare Source

v8.32.0

Compare Source

v8.31.0

Compare Source

v8.30.0

Compare Source

v8.29.0

Compare Source

v8.28.0

Compare Source

v8.27.0

Compare Source

v8.26.0

Compare Source

v8.25.0

Compare Source

v8.24.0

Compare Source

v8.23.1

Compare Source

v8.23.0

Compare Source

v8.22.0

Compare Source

v8.21.0

Compare Source

v8.20.0

Compare Source

v8.19.0

Compare Source

v8.18.0

Compare Source

v8.17.0

Compare Source

v8.16.0

Compare Source

v8.15.0

Compare Source

v8.14.0

Compare Source

v8.13.0

Compare Source

v8.12.0

Compare Source

v8.11.0

Compare Source

v8.10.0

Compare Source

v8.9.0

Compare Source

v8.8.0

Compare Source

v8.7.0

Compare Source

v8.6.0

Compare Source

v8.5.0

Compare Source

v8.4.1

Compare Source

v8.4.0

Compare Source

v8.3.0

Compare Source

v8.2.0

Compare Source

pre-commit/pre-commit

v3.2.2

Compare Source

==================

Fixes

v3.2.1

Compare Source

==================

Fixes

v3.2.0

Compare Source

==================

Features
Fixes
pre-commit/pre-commit-hooks

v4.4.0: pre-commit-hooks v4.4.0

Compare Source

Features

v4.3.0: pre-commit-hooks v4.3.0

Compare Source

Features
  • check-executables-have-shebangs: use git config core.fileMode to determine if it should query git.
  • name-tests-test: add --pytest-test-first test convention.
Fixes
zricethezav/gitleaks

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

Changelog

v8.15.1

Compare Source

Changelog

v8.15.0

Compare Source

Changelog

Thanks @​RickyGrassmuck @​sergiomarotco

--pipe

Try --pipe with anything...

git log -p | gitleaks detect --pipe
--follow-symlinks
gitleaks --source . --no-git --follow-symlinks 

v8.14.1

Compare Source

Changelog

  • c39e764 define log-opts, odd that this wasn't failing before... (#​1009)

v8.14.0

Compare Source

Changelog

Thanks to @​roma8389 @​michenriksen @​JoostVoskuil @​alexgit2k @​Becojo @​nnnkkk7 @​mojotx @​weineran 💪🏻

v8.13.0

Compare Source

Changelog

Thanks to @​maltemorgenstern @​b4bay @​durkinza @​akashchandwani @​very-doge-wow @​gawansch 👍🏻

v8.12.0

Compare Source

Changelog

Screen Shot 2022-09-04 at 9 13 54 AM

If this change causes outrage I can always add a --legacy-output option.

v8.11.2

Compare Source

Changelog

v8.11.1

Compare Source

Changelog

v8.11.0

Compare Source

Changelog

  • b6b7cfb bump gitdiff, add git.Err state, better log messages (#​954)

v8.10.3

Compare Source

Changelog

v8.10.2

Compare Source

Changelog

v8.10.1

Compare Source

Changelog

  • b8f236c Changed fingerprint to explicit concatenation of commit, file, rule-id, and start line (#​944)

v8.10.0

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 MR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


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

This MR has been generated by Renovate Bot.

Merge request reports