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

Add environment variable to override gitleaks baseRef #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paulschuberth
Copy link

@paulschuberth paulschuberth commented Apr 15, 2023

(At least) in repositories that have allowed merges with unrelated histories in the past, the following git command fails.

git -C . log -p -U0 --no-merges --first-parent $BASE_REF^..$HEAD_REF

By default $BASE_REF is the first commit returned by the call to GitHub's API at GET /repos/{owner}/{repo}/pulls/{pull_number}/commits.

The changes in this PR allow to override this using the BASE_REF environment variable.

@chandanrattan
Copy link

Hi, Even i am facing this issue while raising the PR. Can we this be look into merge into ?

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