Is there an existing issue for this?
Current Behavior
The line to check for baseline json file doesn't work when running in Docker as the script looks for it where it would be in the Docker image not on the native file system.
if [ -f "$dir/scripts/config/.gitleaks-baseline.json" ]; then
cmd="$cmd --baseline-path $dir/scripts/config/.gitleaks-baseline.json"
fi
When running in Docker $dir is set to '/workdir' so it isn't looking in the correct place for the baseline file.
Expected Behavior
Should be looking for it in the local repo path
Needs to be
if [ -f "$PWD/scripts/config/.gitleaks-baseline.json" ]; then
cmd="$cmd --baseline-path $dir/scripts/config/.gitleaks-baseline.json"
fi
Steps To Reproduce
No response
Output
Code of Conduct
Sensitive Information Declaration
Is there an existing issue for this?
Current Behavior
The line to check for baseline json file doesn't work when running in Docker as the script looks for it where it would be in the Docker image not on the native file system.
When running in Docker $dir is set to '/workdir' so it isn't looking in the correct place for the baseline file.
Expected Behavior
Should be looking for it in the local repo path
Needs to be
Steps To Reproduce
No response
Output
Code of Conduct
Sensitive Information Declaration