Skip to content

GreenIT - Lot's of log lines generated due to a verbose configuration

Describe the bug

With GreenIT process, we check logs produced by each pipelines Jobs.

After checking files produced by gitleaks job, we identify theses files:

  • gitleaks_artifacts_from_scoring-dev_on_feat-scoring-158.zip 729.61 KiB
  • metadata.gz 188 B
  • job.log 9.77 MiB

We can see a big file for job logs.

Expected behavior

Have a job that summarise all leaks identify with just few line in log jobs and have a complete view of all leaks in artifacts (in a compress archive)

Actual behavior

We can see leaks in job logs and in artifact.

Context & Configuration

GitLeaks identify lot's of false positives in our project that's why we can see easily this issue.

The issue come from GITLEAKS_ARGS variable or argsinput, the default value of this variable / input is "--verbose".

The best solution seems to let empty this variable by default and if we have any issue change this variable to verbose.