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

Added action configuration values #115

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

Commits on May 15, 2023

  1. added action configuration values

    Fixes and adds arguments that are passed to `gitleaks` application.
    
    Fixed `GITLEAKS_CONFIG` that didn't seem to be used.
    
    While testing, I discovered that
    ```
    args.push(
        `--log-opts=--no-merges --first-parent${scanInfo.baseRef}^..${scanInfo.headRef}`
    );
    
    ```
    
    Does not yield the same result as:
    ```
    args.push(
        "--log-opts=--no-merges",
        "--first-parent",
        `${scanInfo.baseRef}^..${scanInfo.headRef}`
    );
    ```
    
    Added these options
    `GITLEAKS_SILENT`, if `true` removes the `-v --redact` arguments
    `GITLEAKS_NO_GIT`, if `true` sets the `--no-git` argument, discards the other versions and baseline options.
    `GITLEAKS_BASELINE_FILE`, if set, added the `-b path/file` argument.
    `GITLEAKS_LOG_LEVEL`, if set, changes the log level
    benoitgoyette committed May 15, 2023
    Configuration menu
    Copy the full SHA
    7d98599 View commit details
    Browse the repository at this point in the history