gitleaks / gitleaks/gitleaks-action

Add support for max-archive-depth input to gitleaks-action

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
646
Forks
195
PR merge metrics
No merged PRs in 30d

Description

I want to be able to specify max-archive-depth when gitleaks is run via the action, the same way I can specify max-archive depth when I run it via the command line.

It looks like I currently have no option to specify archive depth with the action, as it's not available via the the config , as an action import, nor does there seem to be any environment variable I can set.

It would be very helpful to be able to set the max-archive-depth value with the action through any of the above-mentioned mechanisms, so I don't have to fall back to using the command line tool to set the parameter.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the action input and corresponding Gitleaks CLI option, but no repository files or tests. Start by locating the action's declared inputs and argument construction, then verify that setting max-archive-depth reaches Gitleaks and matches the CLI behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd, security
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.