Skip to content

fix(actions): avoid malformed response on log download failure - #3066

Merged
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-fix-nil-pointer-panics
Aug 14, 2026
Merged

fix(actions): avoid malformed response on log download failure#3066
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-fix-nil-pointer-panics

Conversation

@SamMorrowDrums

Copy link
Copy Markdown
Collaborator

Summary

  • return a nil GitHub response when downloading workflow job logs fails before receiving an HTTP response
  • preserve response metadata when an HTTP response is available
  • add a regression test for transport failures

This prevents consumers such as github-mcp-server-remote from receiving a non-nil *github.Response whose embedded *http.Response is nil. Companion defensive fix: github/github-mcp-server-remote#926.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9cdeefb9-91cd-4f65-8eb2-089c9e00a2b8
@SamMorrowDrums
SamMorrowDrums requested a review from a team as a code owner August 14, 2026 07:05
Copilot AI balanced review requested due to automatic review settings August 14, 2026 07:05

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.

Pull request overview

Prevents malformed GitHub responses when workflow log downloads fail before receiving an HTTP response.

Changes:

  • Returns nil when no HTTP response exists.
  • Preserves available HTTP response metadata.
  • Adds transport-failure regression coverage.
Show a summary per file
File Description
pkg/github/actions.go Conditionally wraps available HTTP responses.
pkg/github/actions_test.go Verifies transport failures return a nil response.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@SamMorrowDrums
SamMorrowDrums merged commit accc2e0 into main Aug 14, 2026
20 checks passed
@SamMorrowDrums
SamMorrowDrums deleted the sammorrowdrums-fix-nil-pointer-panics branch August 14, 2026 08:53
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.

3 participants