Skip to content

Fix webhook integer overflow in 32-bit release builds - #70775

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan-laughing-waddle
Oct 21, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan-laughing-waddle

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The v0.92.7 release build failed on FreeBSD/386 because webhook integer validation compared an int against JSON-safe integer bounds that overflow on 32-bit architectures.

Widen the native integer to int64 before comparing, preserving the accepted range on all architectures. Add regression coverage for native integer limits and the JSON-safe boundaries.

Validation: native build, targeted webhook tests, FreeBSD/386 and Linux/386 release builds, and changed-line lint passed. The full validation gate remains blocked by unrelated lint findings in unchanged files; the separate workflow-drift check reports an existing mismatch in daily-caveman-optimizer.lock.yml. Compiling the full workflow test package for 386 also encounters an unrelated overflowing constant in cache_optional_int_test.go.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 21, 2026 04:37
Copilot AI max review requested due to automatic review settings October 21, 2026 04:37
@pelikhan
pelikhan merged commit e06c929 into main Oct 21, 2026
36 of 48 checks passed
@pelikhan
pelikhan deleted the pelikhan-laughing-waddle branch October 21, 2026 04:37
@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor

🔬 Test Quality Sentinel is analyzing test quality on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor

🔎 PR Code Quality Reviewer is reviewing code quality for this pull request...

@github-actions

Copy link
Copy Markdown
Contributor

✂️ Ponytail Reviewer has started processing this pull request

Copilot AI 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.

🟢 Approval recommended

The lossless conversion fixes 32-bit compilation while preserving validation behavior, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Fixes webhook integer validation so gh-aw release builds compile on 32-bit architectures without changing accepted values.

Changes:

  • Converts native integers to int64 before JSON-safe range comparisons.
  • Adds tests for native integer limits and JSON-safe boundaries.
File Description
pkg/​workflow/​webhook.go Prevents comparison constants from overflowing on 32-bit targets.
pkg/​workflow/​webhook_test.go Adds architecture-aware limits and boundary cases.

Review effort: Max

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.93.0

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