Skip to content

[release-0.2] ci(security): scope gitleaks scan to the pull request commits - #637

Merged
pkoprda merged 1 commit into
release-0.2from
pkoprda/0.2-security-pr-scoped-gitleaks
Nov 4, 2026
Merged

pkoprda merged 1 commit into
release-0.2from
pkoprda/0.2-security-pr-scoped-gitleaks

Conversation

@pkoprda

@pkoprda pkoprda commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Scan only the commits a pull request adds on top of its target branch: gitleaks runs with the log range .. instead of re-scanning the history shared by main and release-0.2, whatever branch the change targets. The scanners run only on pull requests.

Assisted-by: GLM-5.3-Flash

(cherry picked from commit bd9d81d)

Backport of #636

Scan only the commits a pull request adds on top of its target branch:
gitleaks runs with the log range <base>..<head> instead of re-scanning
the history shared by main and release-0.2, whatever branch the change
targets. The scanners run only on pull requests.

Assisted-by: GLM-5.3-Flash

Signed-off-by: pkoprda <pkoprda@redhat.com>
(cherry picked from commit bd9d81d)

@stephenbourke stephenbourke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@pkoprda pkoprda changed the title [release-0.2] ci(security): scope gitleaks scan to the pull request commits (#636) [release-0.2] ci(security): scope gitleaks scan to the pull request commits Nov 4, 2026
@pkoprda
pkoprda merged commit 8df172d into release-0.2 Nov 4, 2026
6 of 16 checks passed
@pkoprda
pkoprda deleted the pkoprda/0.2-security-pr-scoped-gitleaks branch November 4, 2026 16:44
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