google / go-github

Go library for accessing the GitHub v3 API

Home Page:https://pkg.go.dev/github.com/google/go-github/v62/github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UploadSarif Always Returns An Error

Rigdon opened this issue · comments

In version 57.0.0 of go-github, UploadSarif never returns a valid SarifID object because it's propagating the AcceptedError instead of deserializing the body because this endpoint returns a 202. It seems to exhibit the same behavior that was fixed for CreateFork in #878.

Thank you, @Rigdon . Would you like to submit a PR to fix this, or shall we open this up to other contributors?

I'll actually try to get a PR open this week.

Thank you, @Rigdon !