Skip to content

Update dependency gitleaks to v8.30.1 - #71

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/gitleaks-8.x
Open

Update dependency gitleaks to v8.30.1#71
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/gitleaks-8.x

Conversation

@renovate

@renovate renovate Bot commented Apr 12, 2025

Copy link
Copy Markdown

This PR contains the following updates:

Package Update Change
gitleaks minor 8.24.28.30.1

Release Notes

gitleaks/gitleaks (gitleaks)

v8.30.1

Compare Source

Changelog

v8.30.0

Compare Source

Changelog

v8.29.1

Compare Source

Changelog

v8.29.0

Compare Source

Changelog

v8.28.0

Compare Source

Changelog

Optimizations

#​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 required Rules) #​1905

In v8.28.0 Gitleaks introduced composite rules, which are made up of a single "primary" rule and one or more auxiliary or required rules. To create a composite rule, add a [[rules.required]] table to the primary rule specifying an id and optionally withinLines and/or withinColumns proximity 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 auxiliary required rules also find matches within the specified area of the fragment.

Proximity matching: Using the withinLines and withinColumns fields instructs the primary rule to only report a finding if the auxiliary required rules 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)
  • Both - creates a rectangular search area (both constraints must be satisfied)
  • Neither - fragment-level matching (required findings can be anywhere in the same fragment)

Here are diagrams illustrating each proximity behavior:

p = primary captured secret
a = auxiliary (required) captured secret
fragment = section of data gitleaks is looking at

    *Fragment-level proximity*               
    Any required finding in the fragment
          ┌────────┐                       
   ┌──────┤fragment├─────┐                 
   │      └──────┬─┤     │ ┌───────┐       
   │             │a│◀────┼─│✓ MATCH│       
   │          ┌─┐└─┘     │ └───────┘       
   │┌─┐       │p│        │                 
   ││a│    ┌─┐└─┘        │ ┌───────┐       
   │└─┘    │a│◀──────────┼─│✓ MATCH│       
   └─▲─────┴─┴───────────┘ └───────┘       
     │    ┌───────┐                        
     └────│✓ MATCH│                        
          └───────┘                        
                                           
                                           
   *Column bounded proximity*
   `withinColumns = 3`                    
          ┌────────┐                       
   ┌────┬─┤fragment├─┬───┐                 
   │      └──────┬─┤     │ ┌───────────┐   
   │    │        │a│◀┼───┼─│+1C ✓ MATCH│   
   │          ┌─┐└─┘     │ └───────────┘   
   │┌─┐ │     │p│    │   │                 
┌──▶│a│  ┌─┐  └─┘        │ ┌───────────┐   
│  │└─┘ ││a│◀────────┼───┼─│-2C ✓ MATCH│   
│  │       ┘             │ └───────────┘   
│  └── -3C ───0C─── +3C ─┘                 
│  ┌─────────┐                             
│  │ -4C ✗ NO│                             
└──│  MATCH  │                             
   └─────────┘                             
                                           
                                           
   *Line bounded proximity*
   `withinLines = 4`                      
         ┌────────┐                        
   ┌─────┤fragment├─────┐                  
  +4L─ ─ ┴────────┘─ ─ ─│                  
   │                    │                  
   │              ┌─┐   │ ┌────────────┐   
   │         ┌─┐  │a│◀──┼─│+1L ✓ MATCH │   
   0L  ┌─┐   │p│  └─┘   │ ├────────────┤   
   │   │a│◀──┴─┴────────┼─│-1L ✓ MATCH │   
   │   └─┘              │ └────────────┘   
   │                    │ ┌─────────┐      
  -4L─ ─ ─ ─ ─ ─ ─ ─┌─┐─│ │-5L ✗ NO │      
   │                │a│◀┼─│  MATCH  │      
   └────────────────┴─┴─┘ └─────────┘      
                                           
                                           
   *Line and column bounded proximity*
   `withinLines = 4`                      
   `withinColumns = 3`                    
         ┌────────┐                        
   ┌─────┤fragment├─────┐                  
  +4L   ┌└────────┴ ┐   │                  
   │            ┌─┐     │ ┌───────────────┐
   │    │       │a│◀┼───┼─│+2L/+1C ✓ MATCH│
   │         ┌─┐└─┘     │ └───────────────┘
   0L   │    │p│    │   │                  
   │         └─┘        │                  
   │    │           │   │ ┌────────────┐   
  -4L    ─ ─ ─ ─ ─ ─┌─┐ │ │-5L/+3C ✗ NO│   
   │                │a│◀┼─│   MATCH    │   
   └───-3C────0L───+3C┴─┘ └────────────┘   

v8.27.2

Compare Source

Changelog

v8.27.1

Compare Source

Changelog

v8.27.0

Compare Source

Changelog

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-depth
enables this feature for both dir and git scan 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-depth flag sets the recursion limit. Recursion stops when
there 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):

Finding:     DB_PASSWORD=8ae31cacf141669ddfb5da
...
File:        testdata/archives/nested.tar.gz!archives/files.tar!files/.env.prod
Line:        4
Commit:      6e6ee6596d337bb656496425fb98644eb62b4a82
...
Fingerprint: 6e6ee6596d337bb656496425fb98644eb62b4a82:testdata/archives/nested.tar.gz!archives/files.tar!files/.env.prod:generic-api-key:4
Link:        https://github.com/leaktk/gitleaks/blob/6e6ee6596d337bb656496425fb98644eb62b4a82/testdata/archives/nested.tar.gz

This means a secret was detected on line 4 of files/.env.prod. which is in
archives/files.tar which is in testdata/archives/nested.tar.gz.

Currently supported formats:

The compression
and archive
formats supported by mholt's archives package
are supported.

v8.26.0

Compare Source

Changelog

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), and b64. It's relatively straight forward to add a new decoder so if you're motivated, community contributions are welcomed!

Here's an example:

~/code/gitleaks-org/gitleaks (master) cat decode.txt
text below
aGVsbG8sIHdvcmxkIQ%3D%3D%0A
text above
~/code/gitleaks-org/gitleaks (master) ./gitleaks dir decode.txt --max-decode-depth=2 --log-level=debug

    ○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

4:08PM DBG using stdlib regex engine
4:08PM DBG unable to load gitleaks config from decode.txt/.gitleaks.toml since --source=decode.txt is a file, using default config
4:08PM DBG found .gitleaksignore file: .gitleaksignore
4:08PM DBG segment found: original=[29,38] pos=[29,38]: "%3D%3D%0A" -> "==\n"
4:08PM DBG segment found: original=[11,38] pos=[11,31]: "aGVsbG8sIHdvcmxkIQ==" -> "hello, world!"
4:08PM INF scanned ~50 bytes (50 bytes) in 1.5ms
4:08PM INF no leaks found

v8.25.1

Compare Source

Changelog

Big thanks @​rgmz

v8.25.0

Compare Source

Changelog

v8.24.3

Compare Source

Changelog


Configuration

📅 Schedule: (UTC)

  • 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 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 added the wip label Apr 12, 2025
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.24.3 chore(deps): update dependency gitleaks to v8.25.1 May 1, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from be2c8f1 to 9650947 Compare May 1, 2025 20:16
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from 9650947 to cb9328c Compare May 17, 2025 15:25
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.25.1 chore(deps): update dependency gitleaks to v8.26.0 May 17, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from cb9328c to d7158ac Compare June 2, 2025 04:16
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.26.0 chore(deps): update dependency gitleaks to v8.27.0 Jun 2, 2025
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.27.0 chore(deps): update dependency gitleaks to v8.27.1 Jun 8, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from d7158ac to 613c669 Compare June 8, 2025 09:11
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.27.1 chore(deps): update dependency gitleaks to v8.27.2 Jun 14, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from 613c669 to c4f418e Compare June 14, 2025 23:49
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from c4f418e to 6d95788 Compare July 27, 2025 00:13
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.27.2 chore(deps): update dependency gitleaks to v8.28.0 Jul 27, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from 6d95788 to ba63ebc Compare September 1, 2025 10:07
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from ba63ebc to 5e1bfc6 Compare September 16, 2025 13:33
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from 5e1bfc6 to ba87951 Compare November 9, 2025 08:14
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.28.0 chore(deps): update dependency gitleaks to v8.29.0 Nov 9, 2025
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.29.0 chore(deps): update dependency gitleaks to v8.29.1 Nov 20, 2025
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from ba87951 to c99f695 Compare November 20, 2025 07:55
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from c99f695 to a5f002b Compare November 28, 2025 03:48
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.29.1 chore(deps): update dependency gitleaks to v8.30.0 Nov 28, 2025
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.30.0 chore(deps): update dependency gitleaks to v8.30.1 Mar 31, 2026
@renovate
renovate Bot force-pushed the renovate/gitleaks-8.x branch from a5f002b to 6b52ff9 Compare March 31, 2026 16:07
@renovate renovate Bot changed the title chore(deps): update dependency gitleaks to v8.30.1 Update dependency gitleaks to v8.30.1 Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants