Skip to content

[ROB] Fix gitleaks push range (OPS-993) - #2134

Merged
jaywedgeworth22 merged 2 commits into
mainfrom
Muse-Assist/gitleaks-push-range-ops993
Dec 6, 2026
Merged

jaywedgeworth22 merged 2 commits into
mainfrom
Muse-Assist/gitleaks-push-range-ops993

Conversation

@jaywedgeworth22

@jaywedgeworth22 jaywedgeworth22 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member
  • A push that still falls back to full history (empty, all-zero, or unreachable SHAs) now logs a loud ::warning:: naming the cause, per the OPS-993 guard requirement.

Summary

  • Fix push-event SHA retrieval in the security workflow by reading before and after from github.event, so gitleaks can scan the changed commit range instead of silently receiving empty SHAs.
  • Warn when a push scan falls back to full history because the range is empty, all-zero, or unreachable, including cases such as branch deletion or force-push.

The automated code review reported no issues. No test execution or runtime verification is reported.


For push events, the Gitleaks workflow now scans the full repository history when either push endpoint is missing, all zeros, or not available as a commit in the checkout. This avoids using an invalid commit range for branch deletions and force-pushes; when both endpoints are valid commits, the workflow continues to scan the push range.

@linear-code

linear-code Bot commented Dec 6, 2026

Copy link
Copy Markdown

OPS-993

@kody-ai

This comment has been minimized.

Comment thread .github/workflows/security.yml Resolved
@kody-ai

kody-ai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Automatic approval held

Kody's assessment:

Risk rules: Security and permissions, CI, build, release and dependencies.

@kody-ai

kody-ai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

⚠️ Note: some checks couldn't be completed in this run, so auto-approval (when enabled) was skipped. Check the details at https://app.kodus.io/pull-requests and then comment @kody review on this PR to retry once the issue is resolved.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@jaywedgeworth22
jaywedgeworth22 enabled auto-merge (squash) December 6, 2026 04:56
@jaywedgeworth22
jaywedgeworth22 merged commit eb28050 into main Dec 6, 2026
13 checks passed
@jaywedgeworth22
jaywedgeworth22 deleted the Muse-Assist/gitleaks-push-range-ops993 branch December 6, 2026 05:06
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.

1 participant