Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 11, 2025

Bumps github.com/conductorone/baton-sdk from 0.2.96 to 0.3.31.

Release notes

Sourced from github.com/conductorone/baton-sdk's releases.

v0.3.31

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.30...v0.3.31

v0.3.30

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.29...v0.3.30

v0.3.29

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.28...v0.3.29

v0.3.28

No release notes provided.

v0.3.27

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.26...v0.3.27

v0.3.26

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.25...v0.3.26

v0.3.25

What's Changed

Full Changelog: ConductorOne/baton-sdk@v0.3.24...v0.3.25

v0.3.24

What's Changed

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/conductorone/baton-sdk](https://github.com/conductorone/baton-sdk) from 0.2.96 to 0.3.31.
- [Release notes](https://github.com/conductorone/baton-sdk/releases)
- [Commits](ConductorOne/baton-sdk@v0.2.96...v0.3.31)

---
updated-dependencies:
- dependency-name: github.com/conductorone/baton-sdk
  dependency-version: 0.3.31
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 11, 2025
}

return status.Error(codes.Unknown, "unsupported content type")
return status.Error(codes.Unknown, fmt.Sprintf("unsupported content type: %s", resp.Header.Get(ContentType)))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: WithGenericResponse Fails with Nil Maps and Unsupported XML

WithGenericResponse has two critical flaws:

  1. When handling a top-level JSON list, it panics if the response map provided by the caller is nil, as it attempts to write to (*response)["items"] without a nil check.
  2. For XML responses, it incorrectly attempts to xml.Unmarshal into a map[string]any (unsupported by encoding/xml), and subsequently inspects an uninitialized local variable, resulting in an "unsupported content type: " error.

These issues render the function unsafe for JSON lists and unusable for XML.

Fix in Cursor Fix in Web

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 18, 2025

Superseded by #76.

@dependabot dependabot bot closed this Aug 18, 2025
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/conductorone/baton-sdk-0.3.31 branch August 18, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants