FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(actions): avoid malformed response on log download failure by SamMorrowDrums · Pull Request #3066 · github/github-mcp-server · GitHub

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

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit accc2e0 into main Aug 14, 2026
20 checks passed
SamMorrowDrums deleted the sammorrowdrums-fix-nil-pointer-panics branch August 14, 2026 08:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL