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

[K9VULN-3784] Use root path to properly find config file for exclusions #69

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

bahar-shah
Copy link
Collaborator

With the way we download/clone the repository files for IaC scanning and the fact that we expect the config file to be located at the root of the repository we were previously assuming that KICS is being run in the same directory as the repository root. However we actually download the files to a tmp directory and then run KICS on that dir which means the KICS base dir and the repository base dir don't match up.

For config file exclusions we ONLY look at the base dir and so we aren't properly finding the config file.
This change now prepends the correct tmp dir to the path where we look for the config file to ensure we can properly identify it if it is present.

@bahar-shah bahar-shah merged commit e7c0d03 into main Feb 26, 2025
3 checks passed
@bahar-shah bahar-shah deleted the bahar.shah/K9VULN-3784 branch February 26, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants