Open pjungermann opened 1 month ago
Found a bug? You're welcome to
--log-level=DEBUG
(Which results are expected from KICS?)
.gitigore
.gitignore
(Formatted logs and samples helps us to better understand the issue)
.gitignore rules get applied to the parent dir path leading to all files being ignored
(Command line arguments and flags used)
/opt/atlassian/pipelines/agent/build
build/
/opt/atlassian/pipelines/agent/build/some/dir/or/file
verbose: true
(N/A if not applicable)
Relates-to: issue #4584 Relates-to: PR #5506
Hi @pjungermann,
Thank you for bringing this bug to our attention we opened an internal bug and will work on it as soon as possible.
Found a bug? You're welcome to
--log-level=DEBUG
)Expected Behavior
(Which results are expected from KICS?)
.gitigore
only applies to files within the same dir it exists and below.gitignore
does not apply to the (absolute) parent dir pathActual Behavior
(Formatted logs and samples helps us to better understand the issue)
.gitignore
rules get applied to the parent dir path leading to all files being ignoredSteps to Reproduce the Problem
(Command line arguments and flags used)
/opt/atlassian/pipelines/agent/build
.gitignore
file that ignores that contains a rule matching the parent dirbuild/
matching and excluding i.e./opt/atlassian/pipelines/agent/build/some/dir/or/file
verbose: true
to see the exclusionsSpecifications
(N/A if not applicable)
Relates-to: issue #4584 Relates-to: PR #5506